Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSverre Rabbelier <srabbelier@gmail.com>2011-07-16 17:03:30 +0400
committerJunio C Hamano <gitster@pobox.com>2011-07-19 22:17:47 +0400
commit0fb56ce716090248ed4895aff69dd3953b00882f (patch)
tree723c9cb5a3dd09a7a28cd35fd71b8e66f798f6ec /git-remote-testgit.py
parent1843f0ce4d31e3c37f7d07dd1d13f6fb034ac2b0 (diff)
git-remote-testgit: only push for non-local repositories
Trying to push for local repositories will fail since there is no local checkout in .git/info/... to push from as that is only used for non-local repositories (local repositories are pushed to directly). This went unnoticed because the transport helper infrastructure does not check the return value of the helper. Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-remote-testgit.py')
-rw-r--r--git-remote-testgit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-remote-testgit.py b/git-remote-testgit.py
index b0c1e9b273..cdbc49495f 100644
--- a/git-remote-testgit.py
+++ b/git-remote-testgit.py
@@ -146,7 +146,9 @@ def do_export(repo, args):
update_local_repo(repo)
repo.importer.do_import(repo.gitdir)
- repo.non_local.push(repo.gitdir)
+
+ if not repo.local:
+ repo.non_local.push(repo.gitdir)
COMMANDS = {