Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHooks not checking hooksPath #9

Closed
DraakUSA opened this issue Jul 13, 2023 · 3 comments
Closed

GitHooks not checking hooksPath #9

DraakUSA opened this issue Jul 13, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@DraakUSA
Copy link

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.

@Lakshmikanth2001
Copy link
Owner

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

any code contribution would help me a lot

@Lakshmikanth2001 Lakshmikanth2001 pinned this issue Jul 14, 2023
@Lakshmikanth2001 Lakshmikanth2001 added the bug Something isn't working label Jul 14, 2023
@Lakshmikanth2001 Lakshmikanth2001 self-assigned this Jul 14, 2023
@Lakshmikanth2001
Copy link
Owner

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

@Lakshmikanth2001
Copy link
Owner

Lakshmikanth2001 commented Jul 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants