import: give --create-missing-branches to git-import-srpm
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 3 Jun 2013 09:36:29 +0000 (12:36 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 3 Jun 2013 09:36:29 +0000 (12:36 +0300)
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 <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_import.py

index efd8e88e07329f10210396bcad1c89215df08028..67c7d52d8704624f42dc7fcded5b5b379fc8dcf0 100644 (file)
@@ -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: