]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5554-noop-fetch-negotiator.sh
Merge branch 'pb/ref-filter-with-crlf'
[thirdparty/git.git] / t / t5554-noop-fetch-negotiator.sh
CommitLineData
cbe566a0
JT
1#!/bin/sh
2
3test_description='test noop fetch negotiator'
4. ./test-lib.sh
5
6test_expect_success 'noop negotiator does not emit any "have"' '
7 rm -f trace &&
8
9 test_create_repo server &&
10 test_commit -C server to_fetch &&
11
12 test_create_repo client &&
13 test_commit -C client we_have &&
14
15 test_config -C client fetch.negotiationalgorithm noop &&
16 GIT_TRACE_PACKET="$(pwd)/trace" git -C client fetch "$(pwd)/server" &&
17
18 ! grep "fetch> have" trace &&
19 grep "fetch> done" trace
20'
21
22test_done