don't specify the default upstream-branch option
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 25 Nov 2013 00:54:40 +0000 (08:54 +0800)
committerGerrit Code Review <gerrit2@otctools.fi.intel.com>
Mon, 25 Nov 2013 08:59:13 +0000 (10:59 +0200)
The builder (depanneur) and export module can take the correct
upstream-branch.

Change-Id: I78e2a5f323f350896f31e21efd6d9e053f88bacc

gitbuildsys/cmd_build.py

index b0edc6d..878c58a 100644 (file)
@@ -316,11 +316,7 @@ def main(args):
         cmd += ['--commit=%s' % args.commit]
 
     if args.upstream_branch:
-        upstream_branch = args.upstream_branch
-    else:
-        upstream_branch = configmgr.get('upstream_branch', 'general')
-    cmd += ['--upstream-branch=%s' % upstream_branch]
-
+        cmd += ['--upstream-branch=%s' % args.upstream_branch]
     if args.upstream_tag:
         cmd += ['--upstream-tag=%s' % args.upstream_tag]
     if args.squash_patches_until: