Skip to content

Commit 2e5ed5f

Browse files
peffgitster
authored andcommitted
push: teach --quiet to suppress "Everything up-to-date"
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 228e7b5 commit 2e5ed5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ int transport_push(struct transport *transport,
10421042
update_tracking_ref(transport->remote, ref, verbose);
10431043
}
10441044

1045-
if (!ret && !refs_pushed(remote_refs))
1045+
if (!quiet && !ret && !refs_pushed(remote_refs))
10461046
fprintf(stderr, "Everything up-to-date\n");
10471047
return ret;
10481048
}

0 commit comments

Comments
 (0)