From d0f5d56d3cdfa50cec862060a2d484c202417303 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Wed, 19 Feb 2014 13:43:49 +0800 Subject: [PATCH] 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 --- gitbuildsys/cmd_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4