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 <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2024-04-23 09:37:40 -07:00
parent 506f6ce85f
commit 9106242667

View file

@ -92,7 +92,7 @@ class DistGitDirectory(object):
DeprecationWarning) DeprecationWarning)
else: else:
if not self.is_fork(): 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: else:
self.distrobranch = True self.distrobranch = True
self.signame = 'centos' self.signame = 'centos'