X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/d2d9efeffd9867660166926c6ac3262b8d22e111..99c5963ad5694fd909688c3827db9e2f42956610:/git-pre-commit-hook?ds=inline diff --git a/git-pre-commit-hook b/git-pre-commit-hook index 7db6818..ce47614 100755 --- a/git-pre-commit-hook +++ b/git-pre-commit-hook @@ -17,6 +17,16 @@ D=$(mktemp -d) git checkout-index --prefix="$D/" -a pushd "$D" -nix-shell --run ./test.sh +# So we don't confuse the inner git invocations inside the tests with +# the outer git invocation that's trying to commit a change. +unset GIT_AUTHOR_DATE +unset GIT_AUTHOR_EMAIL +unset GIT_AUTHOR_NAME +unset GIT_CONFIG_PARAMETERS +unset GIT_EXEC_PATH +unset GIT_INDEX_FILE +unset GIT_PREFIX + +nix-shell --arg lint true --run './test.sh lint' popd