]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5554-noop-fetch-negotiator.sh
The third batch
[thirdparty/git.git] / t / t5554-noop-fetch-negotiator.sh
CommitLineData
cbe566a0
JT
1#!/bin/sh
2
3test_description='test noop fetch negotiator'
e5e37517
ÆAB
4
5TEST_PASSES_SANITIZE_LEAK=true
cbe566a0
JT
6. ./test-lib.sh
7
8test_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
24test_done