From: Markus Lehtonen Date: Mon, 3 Jun 2013 09:36:29 +0000 (+0300) Subject: import: give --create-missing-branches to git-import-srpm X-Git-Tag: 0.17~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=960eef53438ef5879544d36b1dfcd3d04c61a7f7;p=tools%2Fgbs.git import: give --create-missing-branches to git-import-srpm Makes importing into existing git repository easier as one doesn't need to manually create any missing (master or upstream) branches. Change-Id: I6b1f21bf7a99fc9810c7972166f1506007d75134 Signed-off-by: Markus Lehtonen --- diff --git a/gitbuildsys/cmd_import.py b/gitbuildsys/cmd_import.py index efd8e88..67c7d52 100644 --- a/gitbuildsys/cmd_import.py +++ b/gitbuildsys/cmd_import.py @@ -64,6 +64,7 @@ def main(args): params.append('--upstream-vcs-tag=%s' % args.upstream_vcs_tag) if path.endswith('.src.rpm') or path.endswith('.spec'): + params.append("--create-missing-branches") if args.allow_same_version: params.append("--allow-same-version") if args.native: