Skip to content

Commit

Permalink
receive-pack: don't mention successful updates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Nov 5, 2007
1 parent f767349 commit 3b70da2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 */
}
}
Expand Down

0 comments on commit 3b70da2

Please sign in to comment.