title: sourcetree hook with python
body: <p>I have a git hook, "commit-msg"</p>
  
  <p>and it looks something like:</p>
  
  <pre><code>#!/bin/sh
  python .git/hooks/Foo.py
  </code></pre>
  
  <p>Inside my Foo.py</p>
  
  <p>I have:</p>
  
  <pre><code>import git
  # doing some stuff based on git (evaluating latest changes)
  </code></pre>
  
  <p>when I commit using sourcetree if fails to run the hook ( also it does not commit )</p>
  
  <pre><code>//...
      Traceback (most recent call last):
        File ".git/hooks/Foo.py", line 2, in &lt;module&gt;
          import git
      ImportError: No module named git
  //...
  </code></pre>
  
  <p>but if I commit directly from the terminal the hook works as expected.</p>
  
  <p>Any suggestions to fix the commit on source tree? </p>