From b3db7b91af20e45a73e7b6b1754b848b02975adb Mon Sep 17 00:00:00 2001 From: mcc Date: Fri, 10 Feb 2023 15:33:53 -0500 Subject: [PATCH] Increase git hash from 7 back to 8 characters. Clearer comments --- app/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2d97f7538..215cada2b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,14 +5,14 @@ plugins { alias(libs.plugins.kotlin.parcelize) } -// For constructing gitSha +// For constructing gitSha only def getGitSha = { try { providers.exec { - commandLine 'git', 'rev-parse', '--short=7', 'HEAD' + commandLine 'git', 'rev-parse', 'HEAD' }.standardOutput.asText.get().trim() } catch (Exception e) { - "unknown" + "unknown" // Try-catch is necessary for build to work on non-git distributions } }