Add '--always' to 'git describe'

This commit is contained in:
Florian Schmaus 2014-07-28 16:12:57 +02:00
parent 6bf0678db6
commit 34b195397f
1 changed files with 1 additions and 1 deletions

View File

@ -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()