title: Auto merge in GIT using python script
body: <p>I wrote a auto merge script in python for auto merging between different branches. </p>
  
  <p>I plan to use "External hooks" (This script is configured to run on GIT Repository server and script will get fire on each check-in) and pass arguments to this script like branches name as source and target.</p>
  
  <p>But as soon as check-in is done, Script gets fired through "External Hooks", but "Git status" command from script as is follows :</p>
  
  <pre><code>logging.debug("GIT STATUS COMMAND")
  statuscode = call('/usr/local/bin/git status')
  logging.debug('after call %s'%statuscode)
  </code></pre>
  
  <p>and it throws error:</p>
  
  <pre><code>10/07/2015 04:45:15 PM Exception at GIT STATUS
  10/07/2015 04:45:15 PM &lt;class 'FileNotFoundError'&gt;
  </code></pre>
  
  <p>Till now, I am referring this <a href="http://blogs.atlassian.com/2013/05/git-automatic-merges-with-server-side-hooks-for-the-win/" rel="nofollow">http://blogs.atlassian.com/2013/05/git-automatic-merges-with-server-side-hooks-for-the-win/</a> </p>
  
  <p>Whole script is simple, checkout source branch and merge the same into target.</p>
  
  <p>Any ideas, why i am seeing this error ?</p>