git-remote-testgit: only push for non-local repositories
commit0fb56ce716090248ed4895aff69dd3953b00882f
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 16 Jul 2011 13:03:30 +0000 (16 15:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2011 18:17:47 +0000 (19 11:17 -0700)
tree723c9cb5a3dd09a7a28cd35fd71b8e66f798f6ec
parent1843f0ce4d31e3c37f7d07dd1d13f6fb034ac2b0
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>
git-remote-testgit.py