So I'm trying to get hudson to build with a post-receive hook. In my local git repo I set post-receive.sample to just post-receive, chmod 755 and added in the line:
/usr/bin/curl -u user:secret http://localhost:8080/hudson/job/MyJob/build?token=secondsecret
If I force a build, hudson updates the code, but here's what I don't understand, the hooks in that repo DON't have the .sample after them like they do locally, and the post-receive in the hudson repo doesn't have that line of code above. What's going on here and how are hooks integrated into the whole git process? Do I need to be changing this hook on the remote repo? I would have thought it was enough to do it locally and push so anyone fetching from that repo get the new hooks. I can't understand how another user's repo would have different hooks.