From a4b6003e586a2d78fdea7b6366b0e244d5452ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Holl=C3=BD?= Date: Wed, 25 May 2016 16:10:03 +0200 Subject: [PATCH] Wrong versionName when not building latest version (#314) --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index c8c88d5c89..9da1ba5737 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ ext { // Git is needed in your system PATH for these commands to work. // If it's not installed, you can return a random value as a workaround getCommitCount = { - return 'git rev-list --count origin/master'.execute().text.trim() + return 'git rev-list --count HEAD'.execute().text.trim() // return "1" }