mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 11:20:55 -04:00
Fix building when not in a git repo (zip download). Closes #179
This commit is contained in:
parent
9232ac87a2
commit
12a48eade6
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ def mcVersion = "1.14.1 Pre-Release 2"
|
|||
def yarnVersion = "+build.2"
|
||||
|
||||
def getSubprojectVersion(project, version) {
|
||||
if (grgit == null) {
|
||||
return version + "+nogit"
|
||||
}
|
||||
def latestCommits = grgit.log(paths: [project.name], maxCommits: 1)
|
||||
if (latestCommits.isEmpty()) {
|
||||
return version + "+uncommited"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue