mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-03 21:36:15 +01:00
Merge pull request #1465 from dmach/boo1218170-git-working-copy
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:
commit
ed48b9fca7
@ -76,7 +76,7 @@ class GitStore:
|
|||||||
if branch == "factory":
|
if branch == "factory":
|
||||||
self._project = "openSUSE:Factory"
|
self._project = "openSUSE:Factory"
|
||||||
else:
|
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
|
return self._project
|
||||||
|
|
||||||
@project.setter
|
@project.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user