mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Add '--always' to 'git describe'
This commit is contained in:
parent
6bf0678db6
commit
34b195397f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue