I have a repository that I created with git version 1.7.12.
However, I have updated to version 1.8.2.3. This has the hook pre-push. Newly created repositories with this version use the pre-push hook. However when I add the pre-push to an existing repo, I get the following error:
fatal: cannot exec '.git/hooks/pre-push': Not a directory Any help?
Thanks!
pre-push.samplefile doesn't have execute permissions. Maybe that's what's getting you?chmod +x pre-pushbut it still doesn't work.