title: git show not working with python check_output
body: <p>I am writing a python script in which I have to read the output of the <code>git show</code> command from the script. I decided to use python's <code>subprocess.check_output</code> function.</p>
  
  <p>But its giving me <code>No such file or directory</code> error.</p>
  
  <p><em>Running from python</em>:</p>
  
  <pre><code>&gt;&gt;&gt; import subprocess
  &gt;&gt;&gt; subprocess.check_output(['pwd'])
  '/Users/aapa/Projects/supertext\n'
  &gt;&gt;&gt; subprocess.check_output(['git show', 'c9a89aa:supertext/src/com/stxt/supercenter/rest/api/bootstrap/BootstrapDTO.java'])
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
      process = Popen(stdout=PIPE, *popenargs, **kwargs)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
      errread, errwrite)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory
  &gt;&gt;&gt;
  </code></pre>
  
  <p><em>Running directly</em>:</p>
  
  <pre><code>$ pwd
  /Users/aapa/Projects/supertext
  $ git show c9a89aa:supertext/src/com/stxt/supercenter/rest/api/bootstrap/BootstrapDTO.java
  package com.stxt.supercenter.rest.api.bootstrap;
  
  import com.google.common.collect.Maps;
  import com.stxt.base.rolepermission.enums.Role;
  import com.stxt.superbase.profile.agent.bean.Agent;
  import com.stxt.supercenter.rest.api.profile.agnet.AgentDTO;
  
  import java.util.Arrays;
  import java.util.Map;
  .
  .
  .
  </code></pre>
  
  <p>One thing to point out <code>git show</code> outputs in <code>vi</code> style i.e. not the complete file is getting printed directly but the part of file is printed to cover the complete scree with a <code>:</code> in the end to print next line or to quit.</p>
  
  <p>Why I am getting error using <code>check_output</code>? </p>