From: Zhang Qiang Date: Wed, 19 Feb 2014 05:43:49 +0000 (+0800) Subject: correct parsing upstream branch for tarball generation X-Git-Tag: 0.21~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0f5d56d3cdfa50cec862060a2d484c202417303;p=tools%2Fgbs.git correct parsing upstream branch for tarball generation use split('/', 1) instead of split('/') to parse out correct upstream branch Fixes: #1641 Change-Id: I603083766c18bd260c288daa39358f0c6d0d0d61 Signed-off-by: Zhang Qiang --- diff --git a/gitbuildsys/cmd_export.py b/gitbuildsys/cmd_export.py index 7b6fc85..6b700e7 100644 --- a/gitbuildsys/cmd_export.py +++ b/gitbuildsys/cmd_export.py @@ -70,7 +70,7 @@ def check_export_branches(repo, args): ''' remote_branches = {} for branch in repo.get_remote_branches(): - remote_branches[branch.split('/')[-1]] = branch + remote_branches[branch.split('/', 1)[-1]] = branch upstream_branch = configmgr.get_arg_conf(args, 'upstream_branch') # track upstream/pristine-tar branch