瀏覽代碼

Wrong versionName when not building latest version (#314)

Jozef Hollý 8 年之前
父節點
當前提交
a4b6003e58
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"
     }