push: teach --quiet to suppress "Everything up-to-date"
authorJeff King <peff@peff.net>
Mon, 31 Aug 2009 19:28:34 +0000 (15:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Sep 2009 02:47:50 +0000 (19:47 -0700)
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>
transport.c

index f7e1663d18087f708da926d0978a4a3377ae2b50..d6c35d91ce443c19353f43356c5371741d08ddf3 100644 (file)
@@ -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;
        }