diff options
Diffstat (limited to '')
-rwxr-xr-x | t/t5554-noop-fetch-negotiator.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/t5554-noop-fetch-negotiator.sh b/t/t5554-noop-fetch-negotiator.sh new file mode 100755 index 0000000..06991e8 --- /dev/null +++ b/t/t5554-noop-fetch-negotiator.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +test_description='test noop fetch negotiator' + +TEST_PASSES_SANITIZE_LEAK=true +. ./test-lib.sh + +test_expect_success 'noop negotiator does not emit any "have"' ' + rm -f trace && + + test_create_repo server && + test_commit -C server to_fetch && + + test_create_repo client && + test_commit -C client we_have && + + test_config -C client fetch.negotiationalgorithm noop && + GIT_TRACE_PACKET="$(pwd)/trace" git -C client fetch "$(pwd)/server" && + + ! grep "fetch> have" trace && + grep "fetch> done" trace +' + +test_done |