mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Always only return the last part of a branch
Not applying this causes certain environments (such as a local instance) to build artifacts in subdirectories with shortened names.
This commit is contained in:
parent
90fe97f88e
commit
3c664f3a9c
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ def getBranch(){
|
|||
if (grgit == null) {
|
||||
return "unknown"
|
||||
}
|
||||
return grgit.branch.current().name
|
||||
def branch = grgit.branch.current().name
|
||||
return branch.substring(branch.lastIndexOf("/") + 1)
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue