title: How to execute git command from build.gradle?
body: <p>Could you guys clarify why </p>
  
  <pre><code>def getBuildSuffix() {
    return 'git rev-list HEAD | wc -l | tr -d " "'.execute().text.trim()
  }
  </code></pre>
  
  <p>returns nothing to me taking into consideration there is data when you run git command from a command line:</p>
  
  <pre><code>prototype (master) $ git rev-list HEAD | wc -l | tr -d " "
  72
  </code></pre>
  
  <p>May be I'm just executing a git command from my <code>build.gradle</code> in a wrong way?</p>