receive-pack: don't mention successful updates
The proposed updates are already shown to the user by send-pack, so there's no point. We continue to show errors, since they are unexpected. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Nov 5, 2007 at 00:11 UTC
3b70da2b17dc5b7df644701a96a141d8f7c5ea15
1 file changed
-4
receive-pack.c
-4
@@ -204,8 +204,6 @@ static const char *update(struct command *cmd)
204
error("failed to delete %s", name);
205
return "failed to delete";
206
}
207
- fprintf(stderr, "%s: %s -> deleted\n", name,
208
- sha1_to_hex(old_sha1));
207
return NULL; /* good */
208
}
209
else {
@@ -217,8 +215,6 @@ static const char *update(struct command *cmd)
215
if (write_ref_sha1(lock, new_sha1, "push")) {
216
return "failed to write"; /* error() already called */
217
}
220
- fprintf(stderr, "%s: %s -> %s\n", name,
221
- sha1_to_hex(old_sha1), sha1_to_hex(new_sha1));
218
return NULL; /* good */
219
}
220
}