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>
Matt Hunter committed
Jun 19, 2026 at 05:44 UTC
f8a7bbf09d4d8b4f29f689afd77e7c75b0f0cb37
1 file changed
+1
t/t5510-fetch.sh
+1
@@ -251,6 +251,7 @@ test_expect_success 'followRemoteHEAD does not kick in with refspecs' '
251
'
252
253
test_expect_success 'followRemoteHEAD create does not overwrite dangling symref' '
254
+ test_when_finished "git -C two remote remove custom-head" &&
255
git -C two remote add -m does-not-exist custom-head ../one &&
256
test_config -C two remote.custom-head.followRemoteHEAD create &&
257
git -C two fetch custom-head &&