mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +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":
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user