Skip to content

Commit fbf2fec

Browse files
j6tgitster
authored andcommitted
t7300-clean: require POSIXPERM for chmod 0 test
A test case introduced by 91479b9 (t7300: add tests to document behavior of clean and nested git) uses 'chmod 0' to verify that a subdirectory that has an unreadable .git file is not removed. This can work only when the system pays attention to the permissions set with 'chmod'. Therefore, set the POSIXPERM prerequisite on the test case. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 38ae878 commit fbf2fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7300-clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ test_expect_success 'should not clean submodules' '
499499
test_path_is_missing to_clean
500500
'
501501

502-
test_expect_success 'should avoid cleaning possible submodules' '
502+
test_expect_success POSIXPERM 'should avoid cleaning possible submodules' '
503503
rm -fr to_clean possible_sub1 &&
504504
mkdir to_clean possible_sub1 &&
505505
test_when_finished "rm -rf possible_sub*" &&

0 commit comments

Comments
 (0)