Browse Source

Merge pull request #64 from theurere/update-pre-commit-hook

Ignore files in `build/*` for pre-commit jshint
pull/68/head
Simon Eisenmann 11 years ago
parent
commit
64608f05f8
  1. 3
      src/hooks/pre-commit.hook

3
src/hooks/pre-commit.hook

@ -33,6 +33,9 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep " @@ -33,6 +33,9 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "
*/libs/*)
echo "Not checking library ${file}"
;;
build/*)
echo "Not checking build ${file}"
;;
*)
echo "Checking ${file}"
nf=`git checkout-index --temp ${file} | cut -f 1`

Loading…
Cancel
Save