@matheusbsbs / matheus-bagliano / commits / 32a90233d1
Fork 0

t3701: ensure correctly set up repository after skipped tests

There are two tests that are skipped if file modes are not obeyed by the file system. In this case, the subsequent test failed because the repository was in an unexpected state. This corrects it. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed May 25, 2009 at 14:07 UTC 32a90233d147bd697b338326bd1fabf9edc3f1fe
1 file changed +6
t/t3701-add-interactive.sh
+6
@@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but not hunk' '
165
166 # end of tests disabled when filemode is not usable
167
168 +test_expect_success 'setup again' '
169 + git reset --hard &&
170 + test_chmod +x file &&
171 + echo content >>file
172 +'
173 +
174 # Write the patch file with a new line at the top and bottom
175 cat >patch <<EOF
176 index 180b47c..b6f2c08 100644