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 {