diff --git a/build.gradle b/build.gradle index d1e6527a2..2d43e6f45 100644 --- a/build.gradle +++ b/build.gradle @@ -257,7 +257,7 @@ def getGitCommit() { def dotGit = new File("$projectDir/.git") if (!dotGit.isDirectory()) return 'non-git build' - def cmd = 'git describe --tags --dirty=+' + def cmd = 'git describe --always --tags --dirty=+' def proc = cmd.execute() def gitCommit = proc.text.trim() assert !gitCommit.isEmpty()