path: root/t/
diff options
authorClemens Buchacher <>2012-01-08 21:06:20 (GMT)
committerJunio C Hamano <>2012-01-08 22:27:28 (GMT)
commitc207e34f7733df04342e1c0f449f6d3cae501e33 (patch)
tree977c26fbfc516266749f93682e720c0189041507 /t/
parentf47182c852601c045f62bd7f669360a920516311 (diff)
fix push --quiet: add 'quiet' capability to receive-pack
Currently, git push --quiet produces some non-error output, e.g.: $ git push --quiet Unpacking objects: 100% (3/3), done. This fixes a bug reported for the fedora git package: Reported-by: Jesse Keating <> Cc: Todd Zullinger <> Commit 90a6c7d4 (propagate --quiet to send-pack/receive-pack) introduced the --quiet option to receive-pack and made send-pack pass that option. Older versions of receive-pack do not recognize the option, however, and terminate immediately. The commit was therefore reverted. This change instead adds a 'quiet' capability to receive-pack, which is a backwards compatible. In addition, this fixes push --quiet via http: A verbosity of 0 means quiet for remote helpers. Reported-by: Tobias Ulmer <> Signed-off-by: Clemens Buchacher <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 7 insertions, 0 deletions
diff --git a/t/ b/t/
index c229fe6..9ee52cf 100755
--- a/t/
+++ b/t/
@@ -108,4 +108,11 @@ test_expect_failure TTY 'push --no-progress suppresses progress' '
! grep "Writing objects" err
+test_expect_success TTY 'quiet push' '
+ ensure_fresh_upstream &&
+ test_terminal git push --quiet --no-progress upstream master 2>&1 | tee output &&
+ test_cmp /dev/null output