1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02: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:
Daniel Mach 2024-01-09 16:04:38 +01:00 committed by GitHub
commit ed48b9fca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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