remote-testgit: properly check for errors
commit6c323322682abed3bb2a3904596b529ebccddb1c
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 22 Oct 2012 20:56:34 +0000 (22 22:56 +0200)
committerJeff King <peff@peff.net>
Mon, 29 Oct 2012 08:01:00 +0000 (29 04:01 -0400)
tree647314ef2004ab05d56dddbb7c5e718c6e5559c5
parent2cfceefaca16d64baecf0ba9bcd4e05229d9c31b
remote-testgit: properly check for errors

'feature done' was missing, which allowed fast-import exit properly, and
transport-helper to continue checking for refs and what not when in fact
the remote-helper died.

Let's enable that, and make sure the error paths are triggered.

Now transport-helper correctly detects the errors from fast-import,
unfortunately, not from fast-export because it might finish before
detecting a SIGPIPE. This means transport-helper will quit silently and
the user will not see any errors, which is bad. Hopefully the helper
will print the error before dying anyway, so not all is lost.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
git-remote-testgit.py
t/t5800-remote-helpers.sh