Re: git-gui: executed hooks are different from command-line git if hooksPath is set
- Date: Wed, 3 Apr 2019 01:35:10 +0200
- From: Jan Ziak <0xe2.0x9a.0x9b@xxxxxxxxx>
- Subject: Re: git-gui: executed hooks are different from command-line git if hooksPath is set
On Mon, 1 Apr 2019 at 22:46, Johannes Schindelin
> Could you give `master` of https://github.com/git-for-windows/git a try?
> (Despite the name, we aim to keep it functional on the same platforms as
> Git itself.)
> I am fairly certain that I fixed it there, and contributed a PR to the Git
> GUI project, but it seems that that project is in a kind of hibernating
> state right now.
You are right. git-gui.sh in `master` of
https://github.com/git-for-windows/git is respecting the hooksPath
specified in ~/.gitconfig.
Executing "git-for-windows/git rev-parse --git-path hooks/post-commit"
as part of the process works fine but it seems a bit inefficient.