@matheusbsbs / matheus-bagliano / commits / e58b97af31
Fork 0

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>

Alex Riesen committed Jan 5, 2006 at 12:55 UTC e58b97af31779a4db84877082ef619f0e3bd1d6c
1 file changed +8
t/t4000-diff-format.sh
+8
@@ -26,6 +26,14 @@ rm -f path1
26 test_expect_success \
27 'git-diff-files -p after editing work tree.' \
28 'git-diff-files -p >current'
29 +
30 +# that's as far as it comes
31 +if [ "$(git repo-config --get core.filemode)" = false ]
32 +then
33 + say 'filemode disabled on the filesystem'
34 + test_done
35 +fi
36 +
37 cat >expected <<\EOF
38 diff --git a/path0 b/path0
39 old mode 100644