Skip to content

Commit

Permalink
Add hint how to deal with scmsync-nobranch scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Dec 15, 2024
1 parent ffca873 commit 52431dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3618,7 +3618,10 @@ def branch_pkg(

# error out if we're branching a scmsync package (we'd end up with garbage anyway)
if root is not None and root.find("scmsync") is not None:
msg = "Cannot branch a package with <scmsync> set."
msg = ("osc cannot branch packages with <scmsync>, i.e. externally "

Check warning on line 3621 in osc/core.py

View check run for this annotation

Codecov / codecov/patch

osc/core.py#L3621

Added line #L3621 was not covered by tests
"managed sources. Often, the URL for cloning is also the URL "
"for a collaborative web interface where you can fork (branch). "
"The scmsync URL was: " + root.find("scmsync").text)
if devel_project:
raise oscerr.PackageError(devel_project, devel_package, msg)
raise oscerr.PackageError(src_project, src_package, msg)
Expand Down

0 comments on commit 52431dd

Please sign in to comment.