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 a339e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3618,7 +3618,7 @@ 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 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 a339e50

Please sign in to comment.