title: git cannot execute python-script as hook
body: <p>I have created a little <code>pre-commit</code> hook in python. This hook works like a charm under Linux, but in Windows it keeps telling me:</p>
  
  <pre><code>error: cannot spawn .git/hooks/pre-commit: No such file or directory
  </code></pre>
  
  <p>I know there have been similar questions here about the same issue and the conclusion seams to be the shebang. My script has this on the very first line:</p>
  
  <pre><code>#!F:\PortableApps\PortablePython3.2\App\python.exe
  </code></pre>
  
  <p>It's also interesting to note that executing the script simply by writing <code>.git/hooks/pre-commit</code> works wonderful, but as soon as I try to commit, git spits out the above message.</p>
  
  <p>Another interesting thing is, when I convert the encoding from ANSI to UTF-8 (using Notepad++), I get the following error when trying to execute the script:</p>
  
  <pre><code>.git/hooks/pre-commit: Cannot execute binary file
  </code></pre>
  
  <p>I'm using the following tools:</p>
  
  <ul>
  <li><a href="http://portablepython.com">PortablePython</a> 3.2.1.1</li>
  <li>msysgit 1.7.6 (Portable)</li>
  </ul>