Makes git commands work when called with git hooks.