title: Running 'git pull' using shell_exec in PHP not displaying error
body: <p>I'm creating a deployment script for github, written in PHP. I'm using the <code>shell_exec</code>command to run <code>git pull</code> which works fine. </p>
  
  <p>My issue occurs when there is an error with the pull. If I do it in Terminal, I get the full error. For example:</p>
  
  <pre><code>git pull origin master
  Updating f706749..8468d24
  test.txt: needs update
  error: Entry 'test.txt' not uptodate. Cannot merge.
  </code></pre>
  
  <p>But when I run the same command in <code>shell_exec</code> the output is truncated to just</p>
  
  <pre><code>Updating f706749..8468d24
  test.txt: needs update
  </code></pre>
  
  <p>The error message is getting cut off, possibly because it's a response from the previous response. Is there a way to return the full output?</p>