From: Clemens Buchacher Date: Sat, 03 Sep 2011 16:34:15 GMT Subject: [PATCH 2/3] fix push --quiet via http Message-ID: <1315067656-2846-3-git-send-email-drizzd@aon.at> In-Reply-To: <1315067656-2846-1-git-send-email-drizzd@aon.at> A verbosity of 0 means quiet for remote helpers. Signed-off-by: Clemens Buchacher --- remote-curl.c | 2 +- t/t5541-http-push.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/remote-curl.c b/remote-curl.c index 5798aa5..2341106 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -762,7 +762,7 @@ static int push_git(struct discovery *heads, int nr_spec, char **specs) argv[argc++] = "--thin"; if (options.dry_run) argv[argc++] = "--dry-run"; - if (options.verbosity < 0) + if (options.verbosity == 0) argv[argc++] = "--quiet"; else if (options.verbosity > 1) argv[argc++] = "--verbose"; diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh index 0dcb8df..e756a08 100755 --- a/t/t5541-http-push.sh +++ b/t/t5541-http-push.sh @@ -155,7 +155,7 @@ test_expect_success 'push (chunked)' ' test $HEAD = $(git rev-parse --verify HEAD)) ' -test_expect_failure TTY 'quiet push' ' +test_expect_success TTY 'quiet push' ' cd "$ROOT_PATH"/test_repo_clone && test_commit quiet && test_terminal git push --quiet --no-progress 2>&1 | tee output && -- 1.7.6.1