Skip to content

Commit

Permalink
trivial: use git-repo-config to detect if the test can be run on the …
Browse files Browse the repository at this point in the history
…repository

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Jan 6, 2006
1 parent 31f883d commit e58b97a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/t4000-diff-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e58b97a

Please sign in to comment.