Skip to content

Commit

Permalink
Merge pull request #71 from lschwahn/fix/64-lightweight-tags
Browse files Browse the repository at this point in the history
Consider Lightweight Tags
  • Loading branch information
dcoraboeuf authored Jan 31, 2020
2 parents 597fa62 + de76f5a commit 9f4ec5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GitInfoService implements SCMInfoService {
tag = null
}
} else {
String described = grgit.repository.jgit.describe().setLong(true).call()
String described = grgit.repository.jgit.describe().setTags(true).setLong(true).call()
if (described) {
// The format returned by the long version of the `describe` command is: <tag>-<number>-<commit>
def m = described =~ /^(.*)-(\d+)-g([0-9a-f]+)$/
Expand Down

0 comments on commit 9f4ec5a

Please sign in to comment.