X-Git-Url: https://git.auder.net/doc/html/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=hooks%2Fpre-commit;h=bf5d7357a0d7a5d4c222d2a559b399d1baace18a;hb=4464301b48c62cdbad7f1c9a67eaafd596655425;hp=f9649b36cc649bf71f80fc1f944ecd4d395a6ad8;hpb=95dc88bfe8495527cebe7f64db4e75a69773f2e5;p=valse.git
diff --git a/hooks/pre-commit b/hooks/pre-commit
index f9649b3..bf5d735 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -15,7 +15,7 @@ indent() {
fi
# loop on modified files
- git diff --cached --name-only $against |while read file;
+ git diff --cached --name-only $against | while read file;
do
local ext=$(expr "$file" : ".*\(\..*\)")
case $ext in
@@ -28,10 +28,6 @@ indent() {
# Indent the file with `indent' if this is a R file
__indent_R() {
- if test ! -x "$INDENT"
- then
- return;
- fi
if test ! -f $file
then
return;