From: René Scharfe Date: Sat, 12 May 2018 08:45:23 +0000 (+0200) Subject: t5512: run git fetch inside test X-Git-Tag: v2.18.0-rc0~72^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7484cf538e13a28cc61151e7b1af51498ae23a8b?hp=-c 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 Signed-off-by: Junio C Hamano --- 7484cf538e13a28cc61151e7b1af51498ae23a8b diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh index 83cd35c391..6a949484d0 100755 --- a/t/t5512-ls-remote.sh +++ b/t/t5512-ls-remote.sh @@ -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