aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-03-23 18:37:49 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-03-24 09:46:13 +0200
commite39945f346379e15541cdcc242a9cdc5390ebf25 (patch)
tree14bc06171fd2e90209e7cfe648ad59136288af2d
parent1e489ff526bd6a5cdaef3dd4ac8356bdc85cc4ac (diff)
downloadopenembedded-core-contrib-e39945f346379e15541cdcc242a9cdc5390ebf25.tar.gz
scripts/oe-git-archive: fix pushing
Git arguments were badly laid out. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-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)