3 test_description
='test noop fetch negotiator'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'noop negotiator does not emit any "have"' '
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