reopen_tempfile(): truncate opened file
[gitweb.git] / t / t5512-ls-remote.sh
index 83cd35c391dc59973447c7db3ac03e59591ca02f..6a949484d090ea2df02603f9d82bf4f203a799e9 100755 (executable)
@@ -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