test auto-indenter
[valse.git] / hooks / pre-commit
index f9649b3..bf5d735 100755 (executable)
@@ -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;