t1430: clean up broken refs/tags/shadow
[gitweb.git] / t / t1430-bad-ref-name.sh
index 005e2b1756d1f04bfc6fcb68d9b336d089cdbf92..cb815ab6c36091e78ae203f7939c8e0f7cf045e3 100755 (executable)
@@ -148,7 +148,7 @@ test_expect_success 'rev-parse skips symref pointing to broken name' '
        git branch shadow one &&
        cp .git/refs/heads/master .git/refs/heads/broken...ref &&
        git symbolic-ref refs/tags/shadow refs/heads/broken...ref &&
-
+       test_when_finished "rm -f .git/refs/tags/shadow" &&
        git rev-parse --verify one >expect &&
        git rev-parse --verify shadow >actual 2>err &&
        test_cmp expect actual &&