Skip to content

Commit

Permalink
Fix traceback when running osc from an arbitrary git repo that fails …
Browse files Browse the repository at this point in the history
…to map branch to a project (boo#1218170)
  • Loading branch information
dmach committed Jan 9, 2024
1 parent 2408417 commit 3f17dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/git_scm/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def project(self):
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")

Check warning on line 79 in osc/git_scm/store.py

View check run for this annotation

Codecov / codecov/patch

osc/git_scm/store.py#L79

Added line #L79 was not covered by tests
return self._project

@project.setter
Expand Down

0 comments on commit 3f17dd0

Please sign in to comment.