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

Doesn't work with symbolic links. :( #20

Open
jtfairbank opened this issue Apr 14, 2014 · 2 comments
Open

Doesn't work with symbolic links. :( #20

jtfairbank opened this issue Apr 14, 2014 · 2 comments
Milestone

Comments

@jtfairbank
Copy link

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.

@jtfairbank
Copy link
Author

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.

Sources:

@franz-josef-kaiser
Copy link
Member

If someone can come up with a hint on what the problem might be - or how to "fix" this (add this feature) - please leave a note here.

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

No branches or pull requests

2 participants