Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix getting the git hash
Dieser Commit ist enthalten in:
Ursprung
98510992eb
Commit
4a72b97164
@ -43,7 +43,7 @@ if (!project.hasProperty("artifactory_password")) ext.artifactory_password = ""
|
|||||||
|
|
||||||
if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) {
|
if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) {
|
||||||
try {
|
try {
|
||||||
def repo = Grgit.open(dir: '.')
|
def repo = org.ajoberstar.grgit.Grgit.open(dir: '.')
|
||||||
ext.gitCommitHash = repo.head().abbreviatedId
|
ext.gitCommitHash = repo.head().abbreviatedId
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
println "Error getting commit hash: " + e.getMessage()
|
println "Error getting commit hash: " + e.getMessage()
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren