summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-03-24 16:17:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-26 13:17:03 +0100
commitcea9c1380891a85f686cb3b5cb42b6166f38e8d5 (patch)
tree3edebbbfbd8e2d2bec5a68f6cecc7c1fb8298136 /scripts
parent70c41bb721c00ed2abbb88d273eebc3a8bb01f5d (diff)
downloadopenembedded-core-cea9c1380891a85f686cb3b5cb42b6166f38e8d5.tar.gz
openembedded-core-cea9c1380891a85f686cb3b5cb42b6166f38e8d5.tar.bz2
openembedded-core-cea9c1380891a85f686cb3b5cb42b6166f38e8d5.zip
scripts/oe-git-archive: fix pushing
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-git-archive5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/oe-git-archive b/scripts/oe-git-archive
index 117118b04e..aef4ba10a7 100755
--- a/scripts/oe-git-archive
+++ b/scripts/oe-git-archive
@@ -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)