Specify 7 characters for Git revision.

This commit is contained in:
akwizgran
2017-11-30 16:55:41 +00:00
parent 48918f4727
commit f0d8532f71

View File

@@ -169,7 +169,7 @@ def getGitHash = { ->
def stdout = new ByteArrayOutputStream() def stdout = new ByteArrayOutputStream()
try { try {
exec { exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD' commandLine 'git', 'rev-parse', '--short=7', 'HEAD'
standardOutput = stdout standardOutput = stdout
} }
return stdout.toString().trim() return stdout.toString().trim()