X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft4102-apply-rename.sh;h=fbb508d389e078263d983bf6736df8f1a0fe7b5d;hb=65aadb92a1ce9605fa2f412b51de91781a3ef3d6;hp=530cc4d2a38c6f4af92097dfe524029ef6a3a6bf;hpb=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7;p=git.git diff --git a/t/t4102-apply-rename.sh b/t/t4102-apply-rename.sh index 530cc4d2..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..x..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