Parcourir la source

Wrong versionName when not building latest version (#314)

Jozef Hollý il y a 8 ans
Parent
commit
a4b6003e58
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/build.gradle

+ 1 - 1
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"
     }