summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-11-05 05:11:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-05 21:24:18 (GMT)
commit3b70da2b17dc5b7df644701a96a141d8f7c5ea15 (patch)
tree535acb11f65f0c76e7c2332ab364e594db00f8cf
parentf76734902bba47afff622068524a0c38f642d769 (diff)
downloadgit-3b70da2b17dc5b7df644701a96a141d8f7c5ea15.zip
git-3b70da2b17dc5b7df644701a96a141d8f7c5ea15.tar.gz
git-3b70da2b17dc5b7df644701a96a141d8f7c5ea15.tar.bz2
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>
-rw-r--r--receive-pack.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/receive-pack.c b/receive-pack.c
index 38e35c0..ed44b89 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -204,8 +204,6 @@ static const char *update(struct command *cmd)
error("failed to delete %s", name);
return "failed to delete";
}
- fprintf(stderr, "%s: %s -> deleted\n", name,
- sha1_to_hex(old_sha1));
return NULL; /* good */
}
else {
@@ -217,8 +215,6 @@ static const char *update(struct command *cmd)
if (write_ref_sha1(lock, new_sha1, "push")) {
return "failed to write"; /* error() already called */
}
- fprintf(stderr, "%s: %s -> %s\n", name,
- sha1_to_hex(old_sha1), sha1_to_hex(new_sha1));
return NULL; /* good */
}
}