t5512: run git fetch inside test
Do the preparatory fetch inside the test of ls-remote --symref to avoid cluttering the test output and to be able to catch unexpected fetch failures. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1fb20dfd8e
commit
7484cf538e
@ -206,8 +206,8 @@ test_expect_success 'overrides work between mixed transfer/upload-pack hideRefs'
|
||||
grep refs/tags/magic actual
|
||||
'
|
||||
|
||||
git fetch origin
|
||||
test_expect_success 'ls-remote --symref' '
|
||||
git fetch origin &&
|
||||
cat >expect <<-EOF &&
|
||||
ref: refs/heads/master HEAD
|
||||
$(git rev-parse HEAD) HEAD
|
||||
|
Loading…
Reference in New Issue
Block a user