Skip to content

Commit

Permalink
Modified pre-commit hook for executable file checking.
Browse files Browse the repository at this point in the history
Changed to allow a space between the hash-bang and the slash.
refs #7284
  • Loading branch information
stuartcampbell committed Feb 24, 2014
1 parent 14391c5 commit 583c0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Expand Up @@ -121,7 +121,7 @@ mode_looks_exe() {
*.exe) return 0 ;;
*.com) return 0 ;;
esac
git cat-file blob "$2" | head -1 | grep "^#\!/" > /dev/null
git cat-file blob "$2" | head -1 | grep "^#\!\s*/" > /dev/null
}
mode_not_exe () {
echo "The file '$file' has looks executable but does not have an executable mode."
Expand Down

0 comments on commit 583c0ce

Please sign in to comment.