1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 21:28:08 +01:00

Increase git hash from 7 back to 8 characters. Clearer comments

This commit is contained in:
mcc 2023-02-10 15:33:53 -05:00
parent fe8ed9f331
commit b3db7b91af

View File

@ -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
}
}