From 65bb7302b18d410b75116b81f7a3d1c0b0b8d5c7 Mon Sep 17 00:00:00 2001 From: Floens Date: Wed, 17 Jan 2018 17:46:23 +0100 Subject: [PATCH] build: for the git hash length to 8 avoids inconsistency between different build systems, and fixes the hash check. --- Clover/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clover/app/build.gradle b/Clover/app/build.gradle index a109d02f..da795a04 100644 --- a/Clover/app/build.gradle +++ b/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()