]>
git.scottworley.com Git - pinch/blob - git-pre-commit-hook
3 # Copy me to .git/hooks/pre-commit
8 if [[ "$D" && -e "$D" ]];then
17 git checkout
-index --prefix="$D/" -a
20 # So we don't confuse the inner git invocations inside the tests with
21 # the outer git invocation that's trying to commit a change.
23 unset GIT_AUTHOR_EMAIL
25 unset GIT_CONFIG_PARAMETERS
30 nix
-shell --arg lint true
--run './test.sh lint'