From c9e985204cd9a07c09c875f9609290ddc46d75c0 Mon Sep 17 00:00:00 2001 From: Moritz Zwerger Date: Mon, 22 Jan 2024 03:11:27 +0100 Subject: [PATCH] version name is now git commit with fixed 10 chars --- build.gradle.kts | 2 +- release/create.sh | 3 ++- release/release.sh | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 46eb4dec7..aeb2e917a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -447,7 +447,7 @@ fun loadGit() { stable = true tag.name } else { - commit.id.substring(0, 9) + commit.id.substring(0, 10) } if (!git.status().isClean) { nextVersion += "-dirty" diff --git a/release/create.sh b/release/create.sh index f66d8e3af..0b1fc32fb 100755 --- a/release/create.sh +++ b/release/create.sh @@ -12,7 +12,8 @@ # This software is not affiliated with Mojang AB, the original developer of Minecraft. # -VERSION=$(git rev-parse --short HEAD) +VERSION=$(git rev-parse HEAD) +VERSION=${VERSION:0:10} curl \ --form-string "stable=false" \ diff --git a/release/release.sh b/release/release.sh index 9f11292ba..b9371dcb0 100755 --- a/release/release.sh +++ b/release/release.sh @@ -12,7 +12,8 @@ # This software is not affiliated with Mojang AB, the original developer of Minecraft. # -VERSION=$(git rev-parse --short HEAD) +VERSION=$(git rev-parse HEAD) +VERSION=${VERSION:0:10} curl \ -X POST \