From 34b195397fae02eeae39f65b24e627ecb378f542 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 28 Jul 2014 16:12:57 +0200 Subject: [PATCH] Add '--always' to 'git describe' --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()