Skip to content

Commit

Permalink
t7300-clean: require POSIXPERM for chmod 0 test
Browse files Browse the repository at this point in the history
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 <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Aug 11, 2015
1 parent 38ae878 commit fbf2fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ test_expect_success 'should not clean submodules' '
test_path_is_missing to_clean
'

test_expect_success 'should avoid cleaning possible submodules' '
test_expect_success POSIXPERM 'should avoid cleaning possible submodules' '
rm -fr to_clean possible_sub1 &&
mkdir to_clean possible_sub1 &&
test_when_finished "rm -rf possible_sub*" &&
Expand Down

0 comments on commit fbf2fec

Please sign in to comment.