1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-01 13:42:12 +01:00

Fix traceback when running osc from an arbitrary git repo that fails to map branch to a project (boo#1218170)

This commit is contained in:
Daniel Mach 2024-01-09 11:08:28 +01:00
parent 240841761b
commit 3f17dd0dd8

View File

@ -76,7 +76,7 @@ class GitStore:
if branch == "factory":
self._project = "openSUSE:Factory"
else:
raise RuntimeError(f"Couldn't map git branch '{branch}' to a project")
raise oscerr.NoWorkingCopy(f"Couldn't map git branch '{branch}' to a project")
return self._project
@project.setter