X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft4102-apply-rename.sh;h=fbb508d389e078263d983bf6736df8f1a0fe7b5d;hb=d55aaefa3e3920bdf9a52d80da2a244f72742228;hp=0401d7bbc6e416d2d44b8315ffd70125edca55c0;hpb=3eeb419968c1f8f0a762a7127db770e9d9c8037d;p=git.git diff --git a/t/t4102-apply-rename.sh b/t/t4102-apply-rename.sh index 0401d7bb..fbb508d3 100755 --- a/t/t4102-apply-rename.sh +++ b/t/t4102-apply-rename.sh @@ -31,7 +31,12 @@ test_expect_success setup \ test_expect_success apply \ 'git-apply --index --stat --summary --apply test-patch' -test_expect_success validate \ - 'test -f bar && ls -l bar | grep "^-..x......"' +if [ "$(git repo-config --get core.filemode)" = false ] +then + say 'filemode disabled on the filesystem' +else + test_expect_success validate \ + 'test -f bar && ls -l bar | grep "^-..x......"' +fi test_done