X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9200-git-cvsexportcommit.sh;h=36656923ac2dbf76a76173181b8244fcfa55edc2;hb=6da14ee14f85fe5766780e1cbe8d42d385638e9e;hp=d28b71b8cf4bfefb987956be1d36203d69525677;hpb=d291a9a6c8165efee95b3c1ceb814c39460ddbea;p=git.git diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh index d28b71b8c..36656923a 100755 --- a/t/t9200-git-cvsexportcommit.sh +++ b/t/t9200-git-cvsexportcommit.sh @@ -11,7 +11,6 @@ if test $? -ne 1 then say 'skipping git cvsexportcommit tests, cvs not found' test_done - exit fi CVSROOT=$(pwd)/cvsroot @@ -225,11 +224,12 @@ test_expect_success \ 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 && @@ -243,8 +243,6 @@ test_expect_success \ test -x G/on && ! test -x G/off )' - ;; -esac test_expect_success '-w option should work with relative GIT_DIR' ' mkdir W &&