t6120: clean up state after breaking repo
t6120 breaks the repo state intentionally in the last tests. Clean up the breakage afterwards (and before adding more tests). Signed-off-by: Michael J Gruber <git@grubix.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Sep 7, 2017 at 16:02 UTC
ac9b24015c8ecb828485585295c072635bebd73b
1 file changed
+1
t/t6120-describe.sh
+1
@@ -275,6 +275,7 @@ test_expect_success 'describe chokes on severely broken submodules' '
275
'
276
test_expect_success 'describe ignoring a borken submodule' '
277
git describe --broken >out &&
278
+ test_when_finished "mv .git/modules/sub_moved .git/modules/sub1" &&
279
grep broken out
280
'
281