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
I want to include my githooks in source control, the easiest way to do that is to link each of them: ln -s githooks/* .git/hooks/. However then when I run my grunt githooks task to setup the pre-commit hook I get the following error:
Running "githooks:precommit" (githooks) task
Binding `precommit` to `pre-commit` Git hook.
Warning: ENOENT, no such file or directory '/Users/me/Documents/Programming/Sites/mysite.com/.git/hooks/pre-commit' Use --force to continue.
Aborted due to warnings.
Instead, grunt-githooks should follow the symbolic link and update the original file. I can then include the additions it makes in my source control.
The text was updated successfully, but these errors were encountered:
Actually it works fine with hard links. So I can just use those in my project. Not sure if you wanted to do anything about the symbolic links tho, so I'll leave this issue open until you can review.
I want to include my githooks in source control, the easiest way to do that is to link each of them:
ln -s githooks/* .git/hooks/
. However then when I run mygrunt githooks
task to setup the pre-commit hook I get the following error:Instead, grunt-githooks should follow the symbolic link and update the original file. I can then include the additions it makes in my source control.
The text was updated successfully, but these errors were encountered: