1
0
mirror of https://github.com/git/git.git synced 2025-03-15 20:12:35 +00:00

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>
This commit is contained in:
Sverre Rabbelier 2011-07-16 15:03:30 +02:00 committed by Junio C Hamano
parent 1843f0ce4d
commit 0fb56ce716

View File

@ -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 = {