Skip to content

Commit

Permalink
Merge pull request #1679 from jengelh/master
Browse files Browse the repository at this point in the history
Add hint how to deal with scmsync-nobranch scenarios
  • Loading branch information
dmach authored Jan 6, 2025
2 parents 5270af2 + 52431dd commit fb1e5a9
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 "
"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 fb1e5a9

Please sign in to comment.