diff --git a/hooks/post-checkout b/hooks/post-checkout index b1198053..7103d9e5 100755 --- a/hooks/post-checkout +++ b/hooks/post-checkout @@ -2,6 +2,8 @@ # stolen from https://gist.github.com/sindresorhus/7996717 +echo "Running post-checkout hook..." + changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" diff --git a/hooks/post-merge b/hooks/post-merge index 52765ed5..9072393d 100755 --- a/hooks/post-merge +++ b/hooks/post-merge @@ -2,6 +2,8 @@ # stolen from https://gist.github.com/sindresorhus/7996717 +echo "Running post-merge hook..." + changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" diff --git a/hooks/pre-commit b/hooks/pre-commit index 461a9c9a..36416564 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -1,5 +1,14 @@ #!/usr/bin/env bash +case $(uname) in + *CYGWIN*|*MINGW*|*MSYS*) + echo "Cygwin/MinGW/MSYS detected, skipping pre-commit hook" + exit 0 + ;; +esac + +echo "Running pre-commit hook..." + source ./scripts/common.sh jsfiles=$(cachedTSLintFiles)