From: Sverre Rabbelier Date: Sat, 16 Jul 2011 13:03:30 +0000 (+0200) Subject: git-remote-testgit: only push for non-local repositories X-Git-Tag: v1.7.7-rc0~61^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0fb56ce716090248ed4895aff69dd3953b00882f;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-remote-testgit.py b/git-remote-testgit.py index b0c1e9b27..cdbc49495 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 = {