mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
Raise a RuntimeError when GitStore.project couldn't determine project from the current branch
This commit is contained in:
parent
7943b55a6e
commit
5a2ebda567
@ -72,7 +72,7 @@ class GitStore:
|
||||
if branch == "factory":
|
||||
self._project = "openSUSE:Factory"
|
||||
else:
|
||||
print(f"ERROR: Couldn't map git branch '{branch}' to a project", file=sys.stderr)
|
||||
raise RuntimeError(f"Couldn't map git branch '{branch}' to a project")
|
||||
return self._project
|
||||
|
||||
@project.setter
|
||||
|
Loading…
Reference in New Issue
Block a user