]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-git-archive: fix pushing
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 24 Mar 2017 14:17:27 +0000 (16:17 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Mar 2017 12:17:03 +0000 (13:17 +0100)
Git arguments were badly laid out.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-git-archive

index 117118b04ecd6f24e83ab1950583f023500a24fe..aef4ba10a722cf29fe89466e1441eaa6afadf009 100755 (executable)
@@ -231,9 +231,10 @@ def main(argv=None):
         # Push data to remote
         if args.push:
             cmd = ['push', '--tags']
+            # If no remote is given we push with the default settings from
+            # gitconfig
             if args.push is not True:
-                cmd.extend(['--repo', args.push])
-                cmd.append(branch_name)
+                cmd.extend([args.push, branch_name])
             log.info("Pushing data to remote")
             data_repo.run_cmd(cmd)