]> git.ipfire.org Git - thirdparty/git.git/blob - t/t5554-noop-fetch-negotiator.sh
The third batch
[thirdparty/git.git] / t / t5554-noop-fetch-negotiator.sh
1 #!/bin/sh
2
3 test_description='test noop fetch negotiator'
4
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'noop negotiator does not emit any "have"' '
9 rm -f trace &&
10
11 test_create_repo server &&
12 test_commit -C server to_fetch &&
13
14 test_create_repo client &&
15 test_commit -C client we_have &&
16
17 test_config -C client fetch.negotiationalgorithm noop &&
18 GIT_TRACE_PACKET="$(pwd)/trace" git -C client fetch "$(pwd)/server" &&
19
20 ! grep "fetch> have" trace &&
21 grep "fetch> done" trace
22 '
23
24 test_done