'
. ./test-lib.sh
+. "$TEST_DIRECTORY"/lib-prereq-FILEMODE.sh
# setup
test_expect_success apply \
'git apply --index --stat --summary --apply test-patch'
-if [ "$(git config --get core.filemode)" = false ]
-then
- say 'filemode disabled on the filesystem'
-else
- test_expect_success validate \
+test_expect_success FILEMODE validate \
'test -f bar && ls -l bar | grep "^-..x......"'
-fi
test_expect_success 'apply reverse' \
'git apply -R --index --stat --summary --apply test-patch &&