summaryrefslogtreecommitdiff
path: root/t/t4000-diff-format.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2006-01-05 12:55:03 +0100
committerJunio C Hamano <junkio@cox.net>2006-01-05 17:23:44 -0800
commite58b97af31779a4db84877082ef619f0e3bd1d6c (patch)
tree5c7cb643825ac58de70e1225383d557da0948dea /t/t4000-diff-format.sh
parent31f883d1b8439b36d17ca79cf5eac992fb461f5a (diff)
downloadgit-e58b97af31779a4db84877082ef619f0e3bd1d6c.tar.gz
trivial: use git-repo-config to detect if the test can be run on the repository
Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t4000-diff-format.sh')
-rwxr-xr-xt/t4000-diff-format.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4000-diff-format.sh b/t/t4000-diff-format.sh
index beb6d8f487..67b9681d36 100755
--- a/t/t4000-diff-format.sh
+++ b/t/t4000-diff-format.sh
@@ -26,6 +26,14 @@ rm -f path1
test_expect_success \
'git-diff-files -p after editing work tree.' \
'git-diff-files -p >current'
+
+# that's as far as it comes
+if [ "$(git repo-config --get core.filemode)" = false ]
+then
+ say 'filemode disabled on the filesystem'
+ test_done
+fi
+
cat >expected <<\EOF
diff --git a/path0 b/path0
old mode 100644