You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Git 2.9.0, you can run 'git config [--set] core.hooksPath ' to tell git where the hooks directory is. By setting at the global or system level, it will affect every repo. Thus on my system I have done 'git config --global core.hooksPath $HOME/.githooks'. Now I only have to update one location to maintain my hooks.
Running 'git config [--get] core.hooksPath' will let you see what the value is that will be used (or blank if not set).
However, GitHooks only looks in the local .git/hooks directory. I consider this a bug, since GitHooks is not usable in this situation.
The text was updated successfully, but these errors were encountered:
Thanks for your valuable information, in my next release i.e 0.0.16 , I will make user to include this feature to set a hooks path for git version > 2.9.0 , i will try to make this change in a week or 2
once's again thank you so much for pointing out this issue
Thanks a lot for your information on git config [--set] core.hooksPath included this feature in my new release 1.0.0 in commit 2ae17bc unable to execute command git config [--set] core.hooksPath from extension as it has to executed from non git directory, will try to implement it future releases once again thank you so much for you input
expect for the git config --global core.hooksPath all other command functionalities are present in latest release 1.2.0 for now I am closing this issue as now you can configure your hooksDirectory
Once's again thank you for your valuable information
As of Git 2.9.0, you can run 'git config [--set] core.hooksPath ' to tell git where the hooks directory is. By setting at the global or system level, it will affect every repo. Thus on my system I have done 'git config --global core.hooksPath $HOME/.githooks'. Now I only have to update one location to maintain my hooks.
Running 'git config [--get] core.hooksPath' will let you see what the value is that will be used (or blank if not set).
However, GitHooks only looks in the local .git/hooks directory. I consider this a bug, since GitHooks is not usable in this situation.
The text was updated successfully, but these errors were encountered: