From 1f3fa0c4a6c39b6d821c73b0c0954e0e79f70257 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 5 Mar 2023 21:02:03 +0100 Subject: [PATCH] Fixed version number issue. --- androidApp/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts index cebbfd0..40983fb 100644 --- a/androidApp/build.gradle.kts +++ b/androidApp/build.gradle.kts @@ -28,7 +28,7 @@ fun gitVersion(): String { val maybeTagOfCurrentCommit = execWithOutput("git -C ../ describe --contains HEAD", true) process = if (maybeTagOfCurrentCommit.isEmpty()) { println("No tag on current commit. Will take the latest one.") - execWithOutput("git -C ../ for-each-ref refs/tags --sort=-authordate --format='%(refname:short)' --count=1") + execWithOutput("git -C ../ for-each-ref refs/tags --sort=-refname --format='%(refname:short)' --count=1") } else { println("Tag found on current commit") execWithOutput("git -C ../ describe --contains HEAD")