From 8908d100284eb9ae38f73a916a6b55bcb2f1e3ba Mon Sep 17 00:00:00 2001 From: Tim Mutton Date: Mon, 20 Mar 2017 23:09:33 +1100 Subject: [PATCH] Use different git command for version name --- Source/Android/app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/build.gradle b/Source/Android/app/build.gradle index 870f6e71e1..44e5bc5644 100644 --- a/Source/Android/app/build.gradle +++ b/Source/Android/app/build.gradle @@ -94,5 +94,7 @@ dependencies { } def getVersion() { - return 'git describe --abbrev=0'.execute([], project.rootDir).text.trim() + return 'git describe --always --long'.execute([], project.rootDir).text + .trim() + .replaceAll(/(-0)?-[^-]+$/, "") }