From 51f0ef2ae07bdb89bf155685640631178c579f8d Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Thu, 21 May 2009 09:13:34 +0000 Subject: [PATCH] fixed IndexError in commandline.py:996 when linked to project without 'branches:' in name --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index b33c08be..d6ac40e3 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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' \