wf_akkoma/patches/000_plant-a-forest.patch.in
2024-10-02 19:21:19 +02:00

26 lines
663 B
Diff

From: Oneric <oneric@oneric.stub>
Subject: [PATCH] Prepare for Whimsical Forest patches
---
mix.exs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/mix.exs b/mix.exs
index 7ffc450e2..1aaf7764a 100644
--- a/mix.exs
+++ b/mix.exs
@@ -256,6 +256,12 @@ defp version(version) do
# Pre-release version, denoted from patch version with a hyphen
cond do
+ commit_hash_err == 0 ->
+ "wf-%COMMIT_NUMBER%-g%COMMIT_HASH%-u" <> commit_hash
+
+ true ->
+ "wf-%COMMIT_NUMBER%-g%COMMIT_HASH%"
+
tag_err == 0 and describe_err == 0 ->
describe
|> String.trim()
--
2.39.5