aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-gerrit-mirror4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-gerrit-mirror b/git-gerrit-mirror
index 84a0750..8daba5e 100755
--- a/git-gerrit-mirror
+++ b/git-gerrit-mirror
@@ -276,13 +276,13 @@ def push_repos(host, git_repos, force=False):
projname = relpath[:-len(".git")]
mirror_projname = conf.get_mirror_repo(host, projname)
os.chdir(abspath)
- extra_opts = "--prune --all"
+ extra_opts = ""
if force:
extra_opts += " --force"
if not options.debug:
extra_opts += " --no-progress"
repo_root = conf.get_var(options.dest, "repo_root")
- cmdline = "time git push%s %s/%s.git" % (
+ cmdline = "time git push%s %s/%s.git 'refs/heads/*' 'refs/tags/*'" % (
extra_opts, repo_root, mirror_projname)
run_command(cmdline)