git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui ignores core.hooksPath

From
Philip Oakley <philipoakley@iee.org>
Date
Jun 2, 2017, 23:00 UTC
Message-ID
<7B6DC5C9C2354BD9BB08DD84FF6628D1@PhilipOakley>
In-Reply-To
<CACBZZX6H4wxQ7hrO1Y1u6Qyr5gpK9GeCxpv-x2q3Eq2WCbkK8Q@mail.gmail.com>
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Show 27 quoted lines
> On Fri, Jun 2, 2017 at 3:41 PM, Philipp Gortan <philipp@gortan.org> wrote:
>> Hi git devs,
>>
>> First off, thanks for your awesome work!
>>
>> I've been unhappy for quite a while that I had to configure the hooks
>> manually for each of my repos - until I found out recently that there is
>> the core.hooksPath config variable that (when set globally) allows me to
>> specify a hooks directory to be used for all my repositories.
>>
>> Now I was happy - for a few minutes, until I tested this feature in
>> git-gui, and realized that it doesn't work there.
>>
>> This seems to be caused by "proc githook_read", which says "set pchook
>> [gitdir hooks $hook_name]" instead of querying "git config
>> core.hooksPath" first - cf
>> https://github.com/git/git/blob/2cc2e70264e0fcba04f9ef791d144bbc8b501206/git-gui/git-gui.sh#L627
>>
>> Would be great if this could get fixed...
>
> Hi. I added core.hooksPath, glad to see it's useful to other people.
>
> This indeed is something that should be fixed, but git-gui development
> is managed outside of git.git, it's just occasionally pulled in. I'm
> not what the best place to contact is, but I've CC'd
> Philip Oakley who's been making recent commits to git-gui.git at
> http://repo.or.cz/git-gui.git/

The proper maintainer for the git-gui is Pat Thoyts (cc'd) who now has a repo at https://github.com/patthoyts/git-gui where Pull requests can be made, with patches posted here initially for wider review.

I'm just another contributor, but I have managed (with a bit of help from google and formative years using FORTH;-) to get a few git-gui patches tested and incorporated. tcl/tk isn't that hard, its just interpreted code.., the main part, for me, was working out how to ru the code in the Git-for-Windows SDK environment (with help). -- Philip

Previous: Johannes SchindelinNext: Philipp Gortan
Message 7 of 20 in “git-gui ignores core.hooksPath”
  1. Philipp GortanJun 2, 2017
  2. Samuel LijinJun 2, 2017
  3. Ævar Arnfjörð BjarmasonJun 2, 2017
  4. respect core.hooksPath, falling back to .git/hooksPhilipp Gortan, Jun 2, 2017
  5. Philipp GortanJun 2, 2017
  6. Johannes SchindelinJun 14, 2017
  7. Philip OakleyJun 2, 2017
  8. Philipp GortanJun 2, 2017
  9. Johannes SchindelinJun 14, 2017
  10. Philipp GortanJun 14, 2017
  11. Chris MaesApr 10, 2018
  12. Johannes SchindelinApr 10, 2018
  13. Junio C HamanoApr 10, 2018
  14. Ævar Arnfjörð BjarmasonApr 10, 2018
  15. Junio C HamanoApr 11, 2018
  16. Bert WesargJun 5, 2018
  17. Stefan BellerJun 11, 2018
  18. Johannes SixtJun 12, 2018
  19. Johannes SchindelinJul 10, 2018
  20. Philip OakleyJul 10, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.