From 91062426673f56267dd7edf8332986b960f5b97b Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 23 Apr 2024 09:37:40 -0700 Subject: [PATCH] No longer block on possible bad branch names. This is because we cannot confidently check if we are pushing to a fork or not. Instead give a warning, and proceed. Signed-off-by: Troy Dawson --- src/centpkg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index d52b659..cb42f27 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -92,7 +92,7 @@ class DistGitDirectory(object): DeprecationWarning) else: if not self.is_fork(): - raise ValueError("Branchname: {0} is not valid".format(branchtext)) + warnings.warn('Unable to determine if this is a fork or not. Proceeding, but you should double check.') else: self.distrobranch = True self.signame = 'centos'