title: 'Git Command Not found' in the custom action for SourceTree
body: <p>When I add a sh file to SourceTree's custom action function, the error message is:</p>
  
  <pre><code>git: command not found
  </code></pre>
  
  <p>But when I go to terminal to use git command, it exists. If I add the path to Git in my sh file, it works.</p>
  
  <p>How to run my script without entering full path to git?</p>
  
  <p><code>git archive --output=archive-$1.tar $1 $(git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $1)</code></p>
  
  <p>Why does source tree demand full path to Git?</p>