From 7ee486e4f296e9c74248624161e8c48e37d837eb Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sun, 29 Mar 2020 10:58:24 +0300 Subject: [PATCH] Fix version code --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 0f90635f4..35b1a637c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' -def gitCommits = 'git rev-list --all --count'.execute([], rootDir).text.trim().toInteger() +def gitCommits = 'git rev-list --count HEAD'.execute([], rootDir).text.trim().toInteger() def gitBranch = 'git branch --show-current'.execute([], rootDir).text.trim() android {