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' '
4949
5050test_expect_success ' config controls ref-in-want advertisement' '
5151 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 &&
5354
5455 git config uploadpack.allowRefInWant false &&
5556 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 &&
5759
5860 git config uploadpack.allowRefInWant true &&
5961 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
6164'
6265
6366test_expect_success ' invalid want-ref line' '
You can’t perform that action at this time.
0 commit comments