Support core.hooksPath
The core.hooksPath config allows you to set a directory where the hooks are located for a repository.
This is particularly useful if trying to commit your hooks to the repository (e.g. for sharing hooks with the team). Right now, there's a workaround (using symlinks) to get GK to work with it, but would be great if GitKraken could support the same congif setting.
Comments: 13
-
28 Jun, '21
Goulkreek+1
Would help to use husky 6 as we do ;-)
Thx in advance -
09 Jul, '21
Thomas DeinhamerThanks in advance for supporting this!
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corehooksPath -
09 Jul, '21
Giacomo Zanotti AdminBased on feedback from users and our support team, this may be a helpful workaround for Husky users: https://github.com/typicode/husky/issues/875
-
23 Jul, '21
AnthonyWould also be really good to support the --global flag of core.hooksPath.
-
30 Jul, '21
G.J.R. TimmerYeah, Planned (Hope it will be implemented soon)
-
04 Aug, '21
MEven without using Husky, any team that uses shared git hooks would likely find this useful. We have a shared .githooks folder in our repo that we advise our devs to point to using git config core.hooksPath. So it sort of stinks when GitKraken doesn't actually call those hooks. Looking forward to this feature!
-
11 Aug, '21
Giacomo Zanotti AdminWe're delighted to announce this has been released with v7.7.2. Marking this request as Done.
https://support.gitkraken.com/release-notes/current/#version-772 -
12 Aug, '21
KillWolfVladOn Windows don't work. GitKraken v7.7.2 say that my path is invalid.
https://user-images.githubusercontent.com/18448635/129151420-3ebbe125-87f7-4723-9664-ae2a976e03fa.png
Absolute path works like a charm. -
12 Aug, '21
KillWolfVladI think it is because GitKraken v7.7.2 don't join relative hooks path with repository path. If you copy your .husky directory to GitKraken working directory (on Windows it is %LOCALAPPDATA%\gitkraken\app-7.7.2) everything will work.
-
12 Aug, '21
Alex Latham AdminHi KillWoldVlad, Alex from the GitKraken team here. You nailed it - right now the relative path won't work from our git hook preferences page. We are looking to add this functionality in a future release.
For now, a workaround is to use the browse button to define the full path. -
25 Aug, '21
Sebastian Gingter@Alex Latham
So, where is the issue we need to upvote to allow relative paths? -
25 Aug, '21
Esd@Alex Latham, can we expect a fix soon? This is blocking our transition from husky v4
-
25 Aug, '21
alex.latham@gitkraken.com AdminHi Sebastian and Esd, there isn't a feature request for adding support for relative paths that I know of - it is bug that is with our team for investigation (this board is for feature requests only, bugs are kept internally by our team) .
1
I have noted your additional interest fixing the GitKraken hooks path setting to recognize relative paths. When bugs are fixed they will be listed in our release notes both in-app and on our support site https://support.gitkraken.com/release-notes/current/ . You can also sign up for our newsletter https://www.gitkraken.com/newsletter to be notified when new versions of GitKraken are released.