• Brad King's avatar
    Set GIT_DIR if not already set · 5ebbe2da
    Brad King authored
    Although it seems reasonable to expect GIT_DIR to be set when
    hooks are invoked, the "git help hooks" documentation does not
    guarantee it.  On msysGit 1.7.8 (and perhaps others) "git gui"
    runs prepare-commit-msg without setting GIT_DIR.  Set GIT_DIR
    at the beginning of each commit hook if it is not already set.
    5ebbe2da
Name
Last commit
Last update
gerrit Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
NOTICE Loading commit data...
commit-msg Loading commit data...
hooks-chain.bash Loading commit data...
hooks-config.bash Loading commit data...
pre-commit Loading commit data...
prepare-commit-msg Loading commit data...