git_remote_helpers: push all refs during a non-local export

When a remote helper exports to a non-local git repo, the steps are roughly: 1. fast-export into a local staging area; the set of interesting refs is defined by what is in the fast-export stream 2. git push from the staging area to the non-local repo In the second step, we should explicitly push all refs, not just matching ones. This will let us push refs that do not yet exist in the remote repo. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 16, 2011 at 15:03 UTC b4b872994b59be397519ff76354ba4002e74de48
2 files changed +2 -2
git_remote_helpers/git/non_local.py
+1 -1
@@ -63,7 +63,7 @@ class NonLocalGit(object):
63 if not os.path.exists(path):
64 die("could not find repo at %s", path)
65
66 - args = ["git", "--git-dir=" + path, "push", "--quiet", self.repo.gitpath]
66 + args = ["git", "--git-dir=" + path, "push", "--quiet", self.repo.gitpath, "--all"]
67 child = subprocess.Popen(args)
68 if child.wait() != 0:
69 raise CalledProcessError
t/t5800-remote-helpers.sh
+1 -1
@@ -115,7 +115,7 @@ test_expect_success 'push when remote has extra refs' '
115 compare_refs clone master server master
116 '
117
118 -test_expect_failure 'push new branch by name' '
118 +test_expect_success 'push new branch by name' '
119 (cd clone &&
120 git checkout -b new-name &&
121 echo content >>file &&