mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +01:00
fixed IndexError in commandline.py:996 when linked to project without 'branches:' in name
This commit is contained in:
parent
3f6fa3a0b6
commit
51f0ef2ae0
@ -993,7 +993,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
expected = 'home:%s:branches:%s' % (conf.config['user'], args[0])
|
||||
if r != expected:
|
||||
devloc = r.split('branches:')[1]
|
||||
devloc = r
|
||||
if 'branches:' in r:
|
||||
devloc = r.split('branches:')[1]
|
||||
print '\nNote: The branch has been created of a different project,\n' \
|
||||
' %s,\n' \
|
||||
' which is the primary location of where development for\n' \
|
||||
|
Loading…
Reference in New Issue
Block a user