mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-06 12:16:11 +08:00
Fix getting the git hash
This commit is contained in:
parent
98510992eb
commit
4a72b97164
@ -43,7 +43,7 @@
|
||||
|
||||
if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) {
|
||||
try {
|
||||
def repo = Grgit.open(dir: '.')
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: '.')
|
||||
ext.gitCommitHash = repo.head().abbreviatedId
|
||||
} catch (Exception e) {
|
||||
println "Error getting commit hash: " + e.getMessage()
|
||||
|
Loading…
Reference in New Issue
Block a user