문제

I followed Tim Pope's blog post on effortless ctags with git however it doesn't seem to work.

The output of git ctags

fatal: cannot exec '.git/hooks/ctags': Permission denied

I have followed the instructions as he as explained. My ~/.git_template/hooks folder has the following files.

ctags  post-checkout  post-commit post-merge post-rewrite 

I have tried reinitializing a repository and committing but neither seems to generate the ctags.

도움이 되었습니까?

해결책

I guess you missed a:

chmod +x .git/hooks/ctags

On the script, which you need to set the executable bit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top