rycus86 / githooks

Githooks: per-repo and global Git hooks with version control
MIT License
380 stars 19 forks source link

Upstream bugfixes. #160

Open gabyx opened 2 years ago

gabyx commented 2 years ago

For your info, if this might be the case here too.

Failing a reference-transaction 'prepared- hook is really ugly and lead to problems...

https://github.com/gabyx/Githooks/pull/70

gabyx commented 2 years ago

Here is another bugfix you might be interested:

https://github.com/gabyx/Githooks/pull/84

When running the git hooks ... -> Try to unset GIT_DIR and probably GIT_WORKTREE (?) because git sets this when accidentially inside a .git dir. Resorting to all sorts of stupid problems (executing install --global in your if I can remember etc...) . Rather unset it because its not needed.