Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5512: run git fetch inside test
author
René Scharfe
<l.s.r@web.de>
Sat, 12 May 2018 08:45:23 +0000
(10:45 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 13 May 2018 23:49:17 +0000
(08:49 +0900)
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>
t/t5512-ls-remote.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1fb20df
)
diff --git
a/t/t5512-ls-remote.sh
b/t/t5512-ls-remote.sh
index 83cd35c391dc59973447c7db3ac03e59591ca02f..6a949484d090ea2df02603f9d82bf4f203a799e9 100755
(executable)
--- 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