pickaxe tests: refactor to use test_commit --append --printf
[git/debian.git] / t / t5554-noop-fetch-negotiator.sh
blob2ac7b5859e7eefdea13613ba9ae1d238313833dd
1 #!/bin/sh
3 test_description='test noop fetch negotiator'
4 . ./test-lib.sh
6 test_expect_success 'noop negotiator does not emit any "have"' '
7 rm -f trace &&
9 test_create_repo server &&
10 test_commit -C server to_fetch &&
12 test_create_repo client &&
13 test_commit -C client we_have &&
15 test_config -C client fetch.negotiationalgorithm noop &&
16 GIT_TRACE_PACKET="$(pwd)/trace" git -C client fetch "$(pwd)/server" &&
18 ! grep "fetch> have" trace &&
19 grep "fetch> done" trace
22 test_done