title: Create a git post-receive trigger (should work for Xamarin Studio on Mac OS X)
body: <p>I have a network share on which a GIT repository resides in. On my local machine I have checked out the GIT repository, where I'm working on with Xamarin Studio with the integrated GIT client. Additionally, I have installed Jenkins for continuous integration. This is all working so far.</p>
  
  <p>Now I want to notify Jenkins when something is commited to this repository. In <a href="https://stackoverflow.com/questions/5784329/how-can-i-make-jenkins-ci-with-git-trigger-on-pushes-to-master">How can I make Jenkins CI with git trigger on pushes to master?</a> it is stated that I should create a github post-receive trigger after setting the <em>Poll SCM</em> option.</p>
  
  <p>The post from <a href="https://stackoverflow.com/a/21636659/426227">Nav</a> says that I only have to create a <code>post-commit</code> file in the <code>hooks</code> folder with the content similar to</p>
  
  <pre><code>#!/bin/sh
  #
  # A script which triggers the Jenkins build after a commit.
  curl http://localhost:8080/jenkins/git/notifyCommit?url=http://localhost:8080/job/MyJobName/
  </code></pre>
  
  <p>but if I try to open the URL in the browser I get</p>
  
  <blockquote>
    <p>HTTP ERROR 404</p>
    
    <p>Problem accessing /jenkins/git/notifyCommit. Reason:</p>
  
  <pre><code>Not Found
  </code></pre>
  </blockquote>
  
  <p>Now I exchanged the URL for</p>
  
  <pre><code>http://yourserver/jenkins/git/notifyCommit?url=&lt;URL of the Git repository&gt;
  </code></pre>
  
  <p>and calling this URL directly in the browser leads to a build. Putting this into the script doesn't trigger a build after a commit. I put the hook into the above mentioned directory on the network share. Putting the script on the local repository also didn't triggered the build.</p>
  
  <p>So how can I create such a git post-receive trigger, which works together with Xamarin Studio?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Now I changed the permission of the local hook to 755 and really removed the file extension, but the build is not triggered.</p>