mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-21 20:50:28 -04:00
Remove remote name from branch
This commit is contained in:
parent
65dbd72c87
commit
d7b19f7e1c
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ def getSubprojectVersion(project, version) {
|
|||
|
||||
def getBranch(){
|
||||
if(System.getenv().GIT_BRANCH){
|
||||
return System.getenv().GIT_BRANCH
|
||||
def branch = System.getenv().GIT_BRANCH
|
||||
return branch.substring(branch.lastIndexOf("/") + 1)
|
||||
}
|
||||
if (grgit == null) {
|
||||
return "unknown"
|
||||
|
|
Loading…
Reference in a new issue