Skip to content

Commit 32a9023

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7a26e65 commit 32a9023

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t3701-add-interactive.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but not hunk' '
165165

166166
# end of tests disabled when filemode is not usable
167167

168+
test_expect_success 'setup again' '
169+
git reset --hard &&
170+
test_chmod +x file &&
171+
echo content >>file
172+
'
173+
168174
# Write the patch file with a new line at the top and bottom
169175
cat >patch <<EOF
170176
index 180b47c..b6f2c08 100644

0 commit comments

Comments
 (0)