File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,18 @@ test_expect_success 'setup repository' '
49
49
50
50
test_expect_success ' config controls ref-in-want advertisement' '
51
51
test-tool serve-v2 --advertise-capabilities >out &&
52
- ! grep -a ref-in-want out &&
52
+ perl -ne "/ref-in-want/ and print" out >out.filter &&
53
+ test_must_be_empty out.filter &&
53
54
54
55
git config uploadpack.allowRefInWant false &&
55
56
test-tool serve-v2 --advertise-capabilities >out &&
56
- ! grep -a ref-in-want out &&
57
+ perl -ne "/ref-in-want/ and print" out >out.filter &&
58
+ test_must_be_empty out.filter &&
57
59
58
60
git config uploadpack.allowRefInWant true &&
59
61
test-tool serve-v2 --advertise-capabilities >out &&
60
- grep -a ref-in-want out
62
+ perl -ne "/ref-in-want/ and print" out >out.filter &&
63
+ test_file_not_empty out.filter
61
64
'
62
65
63
66
test_expect_success ' invalid want-ref line' '
You can’t perform that action at this time.
0 commit comments