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

feat: customizable githooks directory per repository #112

Closed
LoeschMaximilian opened this issue Jun 13, 2023 · 4 comments
Closed

feat: customizable githooks directory per repository #112

LoeschMaximilian opened this issue Jun 13, 2023 · 4 comments

Comments

@LoeschMaximilian
Copy link

At work we have a convention to use .git-hooks as the directory-name for checked in git hooks.
This feature would ease our transition to Githooks away from other solutions.

I saw that .githooks is hard-coded, but i lack the go skills to change that myself.

@gabyx
Copy link
Owner

gabyx commented Jun 27, 2023

Its a good point, maybe we could customize this somehow. But I d like not to go over the git config as this seams a bit overkill, maybe over an environment variable?

You could however (beware of Windows crap and symlinks) introduce a simple relative symlink .githooks -> .git-hooks and commit it. Git will work with that fine. On Linux/macOS on Windows too if you enable creation of symlinks

@gabyx
Copy link
Owner

gabyx commented Jun 27, 2023

There is a PR which would do this change:
#117, it needs however a another test.

I think the symlink is a better option for now I think and would solve your issue.

@LoeschMaximilian
Copy link
Author

Thanks, keep up the good work.

@gabyx gabyx closed this as completed Nov 8, 2023
@LoeschMaximilian
Copy link
Author

Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants