aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2018-06-04 11:07:33 -0500
committerKelley Spoon <kelley.spoon@linaro.org>2018-06-04 11:07:33 -0500
commit9e4a84aa6100a139cfccdf4321e341b45f8791be (patch)
treeb35542ff8d7f10cf2984c4dbfcbfdbd7ae51bdc5
parent1b931e62b519f0a6a069efab2b23492393541fe6 (diff)
downloadlinaro-android-gerrit-support-master.tar.gz
GerritMirror: remove prune from pushHEADmaster
Revert to previous push command in order to avoid deleting local branches. Change-Id: I94de76608bf95e328e9445c8cd38a3457bc63274
-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)