The eleventh batch
[git/gitster.git] / t / t5554-noop-fetch-negotiator.sh
blob06991e8e8aabc28c1a4e522324e5c3eb505cc37e
1 #!/bin/sh
3 test_description='test noop fetch negotiator'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 test_expect_success 'noop negotiator does not emit any "have"' '
9 rm -f trace &&
11 test_create_repo server &&
12 test_commit -C server to_fetch &&
14 test_create_repo client &&
15 test_commit -C client we_have &&
17 test_config -C client fetch.negotiationalgorithm noop &&
18 GIT_TRACE_PACKET="$(pwd)/trace" git -C client fetch "$(pwd)/server" &&
20 ! grep "fetch> have" trace &&
21 grep "fetch> done" trace
24 test_done