mirror of
https://github.com/openSUSE/osc.git
synced 2025-04-08 15:53:11 +02:00
Fix 'build' command when '--alternative-project' option is specified and the git branch cannot be mapped to a project
This commit is contained in:
parent
fa8da38747
commit
a0d4889d64
@ -7232,8 +7232,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
store = osc_store.get_store(Path.cwd(), print_warnings=True)
|
store = osc_store.get_store(Path.cwd(), print_warnings=True)
|
||||||
store.assert_is_package()
|
store.assert_is_package()
|
||||||
|
|
||||||
if opts.alternative_project == store.project:
|
try:
|
||||||
|
if opts.alternative_project and opts.alternative_project == store.project:
|
||||||
opts.alternative_project = None
|
opts.alternative_project = None
|
||||||
|
except RuntimeError:
|
||||||
|
# ignore the following exception: Couldn't map git branch '<BRANCH>' to a project
|
||||||
|
pass
|
||||||
|
|
||||||
# HACK: avoid calling some underlying store_*() functions from parse_repoarchdescr() method
|
# HACK: avoid calling some underlying store_*() functions from parse_repoarchdescr() method
|
||||||
# We'll fix parse_repoarchdescr() later because it requires a larger change
|
# We'll fix parse_repoarchdescr() later because it requires a larger change
|
||||||
|
Loading…
x
Reference in New Issue
Block a user