git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUGFIX] Unbork remote helper execution
@ 2010-01-12 18:49 Ilari Liusvaara
  0 siblings, 0 replies; 3+ messages in thread
From: Ilari Liusvaara @ 2010-01-12 18:49 UTC (permalink / raw)
  To: git

Someone that obiviously didn't test the change did the following (the
code blames to me, but I didn't write this):

code = start_command(helper);
if (code < 0 && errno == ENOENT)
	die("Unable to find remote helper for '%s'", data->name);
else
	exit(code);

Which is obiviously wrong. The code shouldn't exit if code is 0.

Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
---
 transport-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/transport-helper.c b/transport-helper.c
index fece6d6..7012101 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -121,7 +121,7 @@ static struct child_process *get_helper(struct transport *transport)
 	code = start_command(helper);
 	if (code < 0 && errno == ENOENT)
 		die("Unable to find remote helper for '%s'", data->name);
-	else
+	else if (code != 0)
 		exit(code);
 
 	data->helper = helper;
-- 
1.6.6.102.gd6f8f.dirty

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-13  6:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1263321344-21237-1-git-send-email-ilari.liusvaara@elisanet.fi>
2010-01-12 19:53 ` [BUGFIX] Unbork remote helper execution Johannes Sixt
2010-01-13  6:56   ` Junio C Hamano
2010-01-12 18:49 Ilari Liusvaara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).