build: for the git hash length to 8

avoids inconsistency between different build systems, and fixes
the hash check.
refactor-toolbar
Floens 8 years ago
parent e468b9d11d
commit 65bb7302b1
  1. 2
      Clover/app/build.gradle

@ -6,7 +6,7 @@ apply plugin: 'com.android.application'
def getCommitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
commandLine 'git', 'rev-parse', '--short=8', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()

Loading…
Cancel
Save