Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7f37e17 authored by Christopher Roy Bratusek's avatar Christopher Roy Bratusek Committed by Marvin W.
Browse files

build.gradle: properly calculate gitVersionBase if latest tag is not a release tag

parent 652d7a91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ def execResult(...args) {

def gmsVersion = "13.2.80"
def gmsVersionCode = Integer.parseInt(gmsVersion.replaceAll('\\.', ''))
def gitVersionBase = execResult('git', 'describe', '--tags', '--abbrev=0').substring(1)
def gitVersionBase = execResult('git', 'describe', '--tags', '--abbrev=0', '--match=v[0-9]*').substring(1)
def gitCommitCount = Integer.parseInt(execResult('git', 'rev-list', '--count', "v$gitVersionBase..HEAD"))
def gitCommitId = execResult('git', 'show-ref', '--abbrev=7', '--head', 'HEAD').split(' ')[0]
def gitDirty = execResult('git', 'status', '--porcelain').size() > 0