Merge pull request #255 from aminecmi/fdroid/build

A fix for #254.
This commit is contained in:
Amine Bou 2018-12-02 03:54:36 +01:00 committed by GitHub
commit 01f746f33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ buildscript {
} }
def gitVersion() { def gitVersion() {
def process = "git for-each-ref refs/tags --sort=-authordate --format='%(refname:short)' --count=1".execute() def process = 'git describe --contains HEAD'.execute()
return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim() return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim()
} }