I have git running on a local Windows PC and everything is working perfectly; I have Jenkins and Phing working to automate my build and test processes, however the final step is to automatically kick off the build once a commit is made in git.
I have tried adding post-commit to my local repo's .git/hooks directory with the following:
curl http://localhost:8198/git/notifyCommit?url=c:\scm\myProject
If I run this command directly from the command line Jenkins kicks off the job fine, however when I push a commit it does not fire.
Additionally I have tried adding the script at https://github.com/MestreLion/git-tools/blob/master/git-restore-mtime to the hooks directory in the main repo named post-checkout so that I can add the commit time as the file modified time when cloned. This is also not firing.
Do I need to do something specifically in git or my repo to allow hooks to fire? If not, is there anywhere in particular I can look to start troubleshooting?