View Source mix git.test.install (ex_git_test v0.1.1)
Installs a git pre-commit hook to ensure mix git.test
passes before allowing a commit.
The actual contents of the hook are incredibly simple:
#!/bin/sh
MIX_ENV=test exec mix git.test
The hook will be installed as .git/hooks/pre-commit
. If that file already
exists, it will not be overwritten; instead, this task will report
whether the existing hook appears to contain mix git.test
or not.