1
0
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:
Michal Vyskocil 2009-05-21 09:13:34 +00:00
parent 3f6fa3a0b6
commit 51f0ef2ae0

View File

@ -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' \