Merge branch 'cb/push-quiet'
* cb/push-quiet: t5541: avoid TAP test miscounting fix push --quiet: add 'quiet' capability to receive-pack server_supports(): parse feature list more carefully
This commit is contained in:
@ -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
|
||||
'
|
||||
|
||||
test_done
|
||||
|
@ -14,6 +14,7 @@ fi
|
||||
ROOT_PATH="$PWD"
|
||||
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5541'}
|
||||
. "$TEST_DIRECTORY"/lib-httpd.sh
|
||||
. "$TEST_DIRECTORY"/lib-terminal.sh
|
||||
start_httpd
|
||||
|
||||
test_expect_success 'setup remote repository' '
|
||||
@ -186,5 +187,12 @@ test_expect_success 'push --mirror to repo with alternates' '
|
||||
git push --mirror "$HTTPD_URL"/smart/alternates-mirror.git
|
||||
'
|
||||
|
||||
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 &&
|
||||
test_cmp /dev/null output
|
||||
'
|
||||
|
||||
stop_httpd
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user