title: cannot run hooks/post-update: No such file or directory
body: <p>Thx to this <a href="http://danbarber.me/using-git-for-deployment/" rel="nofollow noreferrer">http://danbarber.me/using-git-for-deployment/</a> great article I managed to have a remote server under git control. </p>
  
  <p>Unfortunatly I had to change server. </p>
  
  <p>Now after finishing all steps in the tutorial and running</p>
  
  <pre><code>git push origin master 
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>error: cannot run hooks/post-update: No such file or directory
  To root@myproject.com:../var/git/myproject.git
  </code></pre>
  
  <p>I 've tried many times and variations. I replaced </p>
  
  <pre><code>#!/bin/sh 
  </code></pre>
  
  <p>for </p>
  
  <pre><code>#!/bin/bash 
  </code></pre>
  
  <p>after reading <a href="https://stackoverflow.com/questions/11630433/git-remote-error-cannot-run-hooks-post-receive-no-such-file-or-directory">Git - remote: error: cannot run hooks/post-receive: No such file or directory</a></p>
  
  <p>Anyway as far as I checked ( multiple times ) the paths are correct.</p>
  
  <p>I am wondering why it says :../var instead of :/var but I do not have any idea where this comes from.</p>
  
  <p>Any suggestions on how to make this work again?</p>