* [PATCH] Avoid misleading success message on error
@ 2005-12-21 16:53 Johannes Schindelin
2005-12-21 20:47 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Schindelin @ 2005-12-21 16:53 UTC (permalink / raw)
To: git, junkio
When a push fails (for example when the remote head does not fast forward
to the desired ref) it is not correct to print "Everything up-to-date".
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
send-pack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
67819bb187daa5a976bc3d721d5c9f920f52e4ba
diff --git a/send-pack.c b/send-pack.c
index a41bbe5..5bc2f01 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -272,7 +272,7 @@ static int send_pack(int in, int out, in
packet_flush(out);
if (new_refs)
pack_objects(out, remote_refs);
- else
+ else if (ret == 0)
fprintf(stderr, "Everything up-to-date\n");
close(out);
return ret;
--
0.99.9.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-21 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 16:53 [PATCH] Avoid misleading success message on error Johannes Schindelin
2005-12-21 20:47 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox