index 245a7c36628e955e04852a8c2beb75b8deaf4d7f..36656923ac2dbf76a76173181b8244fcfa55edc2 100755 (executable)
cvs >/dev/null 2>&1
if test $? -ne 1
then
cvs >/dev/null 2>&1
if test $? -ne 1
then
- test_expect_success 'skipping git cvsexportcommit tests, cvs not found' :
+ say 'skipping git cvsexportcommit tests, cvs not found'
test_done
test_done
- exit
fi
CVSROOT=$(pwd)/cvsroot
fi
CVSROOT=$(pwd)/cvsroot
test_must_fail git cvsexportcommit -c $id
)'
test_must_fail git cvsexportcommit -c $id
)'
-case "$(git config --bool core.filemode)" in
-false)
- ;;
-*)
-test_expect_success \
+if ! test "$(git config --bool core.filemode)" = false
+then
+ test_set_prereq FILEMODE
+fi
+
+test_expect_success FILEMODE \
'Retain execute bit' \
'mkdir G &&
echo executeon >G/on &&
'Retain execute bit' \
'mkdir G &&
echo executeon >G/on &&
test -x G/on &&
! test -x G/off
)'
test -x G/on &&
! test -x G/off
)'
- ;;
-esac
test_expect_success '-w option should work with relative GIT_DIR' '
mkdir W &&
test_expect_success '-w option should work with relative GIT_DIR' '
mkdir W &&