Skip to content
Snippets Groups Projects
Verified Commit 50f928fe authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

build: include tags in versioncode count

parent dbd33df0
No related branches found
No related tags found
No related merge requests found
Pipeline #3003 failed
......@@ -27,7 +27,7 @@ class AndroidApplicationConvention : Plugin<Project> {
val commit = git("rev-parse", "HEAD")
val name = git("describe", "--always", "--tags", "HEAD")
versionCode = git("rev-list", "--count", "HEAD")?.toIntOrNull()
versionCode = git("rev-list", "--count", "HEAD", "--tags")?.toIntOrNull()
versionName = git("describe", "--always", "--tags", "HEAD")
val fancyVersionName = if (commit == null || name == null) name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment