mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-28 06:35:27 -05:00
t5510: cleanup remote in followRemoteHEAD dangling ref test
A later patch will introduce a new test which closely mirrors this one. Update this test to remove the 'custom-head' remote it creates. Otherwise, the two tests will conflict with each other, as the second one to execute will fail to create this remote (which already exists, thanks to the first test). Signed-off-by: Matt Hunter <m@lfurio.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
54c9d48101
commit
f8a7bbf09d
@@ -251,6 +251,7 @@ test_expect_success 'followRemoteHEAD does not kick in with refspecs' '
|
||||
'
|
||||
|
||||
test_expect_success 'followRemoteHEAD create does not overwrite dangling symref' '
|
||||
test_when_finished "git -C two remote remove custom-head" &&
|
||||
git -C two remote add -m does-not-exist custom-head ../one &&
|
||||
test_config -C two remote.custom-head.followRemoteHEAD create &&
|
||||
git -C two fetch custom-head &&
|
||||
|
||||
Reference in New Issue
Block a user