Commit [5ebbe2] Maximize Restore History

Set GIT_DIR if not already set

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.

Brad King Brad King 2012-02-29

changed commit-msg
changed hooks-config.bash
changed pre-commit
changed prepare-commit-msg
commit-msg Diff Switch to side-by-side view
Loading...
hooks-config.bash Diff Switch to side-by-side view
Loading...
pre-commit Diff Switch to side-by-side view
Loading...
prepare-commit-msg Diff Switch to side-by-side view
Loading...