Question

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.

Was it helpful?

Solution

I guess you missed a:

chmod +x .git/hooks/ctags

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top