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>

René Scharfe committed May 12, 2018 at 10:45 UTC 7484cf538e13a28cc61151e7b1af51498ae23a8b
1 file changed +1 -1
t/t5512-ls-remote.sh
+1 -1
@@ -206,8 +206,8 @@ test_expect_success 'overrides work between mixed transfer/upload-pack hideRefs'
206 grep refs/tags/magic actual
207 '
208
209 -git fetch origin
209 test_expect_success 'ls-remote --symref' '
210 + git fetch origin &&
211 cat >expect <<-EOF &&
212 ref: refs/heads/master HEAD
213 $(git rev-parse HEAD) HEAD