diff --git a/build.gradle b/build.gradle
index e10ded0777570a4709c3b73663b2371eda581f93..712643f11a7a4e1e62cc92b0452bdca340625ed4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -193,7 +193,7 @@ task processAssets(dependsOn: [':util:checksum:runChecksum', ':util:checksum:run
 
 def getVersionNameFromGit() {
     def stdout = new ByteArrayOutputStream()
-    String branchName = getBrancheNameFromGit()
+    String branchName = getBranchNameFromGit()
 
     // get last tag in current branch
     exec {
@@ -238,10 +238,10 @@ def getVersionCodeFromGit() {
     return stdout.toString().trim().toInteger()
 }
 
-def getBrancheNameFromGit() {
+def getBranchNameFromGit() {
     def stdout = new ByteArrayOutputStream()
     exec {
-        commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD'
+        commandLine 'git', 'symbolic-ref', '--short', 'HEAD'
         standardOutput = stdout
     }
     return stdout.toString().trim().toLowerCase()