Skip to content

Commit

Permalink
push: teach --quiet to suppress "Everything up-to-date"
Browse files Browse the repository at this point in the history
This should have been part of 481c7a6, whose goal was to
make "git push -q" silent unless there is an error.

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 Sep 3, 2009
1 parent 228e7b5 commit 2e5ed5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ int transport_push(struct transport *transport,
update_tracking_ref(transport->remote, ref, verbose);
}

if (!ret && !refs_pushed(remote_refs))
if (!quiet && !ret && !refs_pushed(remote_refs))
fprintf(stderr, "Everything up-to-date\n");
return ret;
}
Expand Down

0 comments on commit 2e5ed5f

Please sign in to comment.