Skip to content
Snippets Groups Projects
Commit de08f975 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Fixed branch name in version string

parent 40698e9e
No related merge requests found
......@@ -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()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment