From 200851894bc82d91fd1c9a92a30715f2118179dd Mon Sep 17 00:00:00 2001 From: Amine Date: Sat, 1 Dec 2018 19:32:28 +0100 Subject: [PATCH] See #254. --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 7732f72..b690316 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ buildscript { } 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() }