summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 18:42:04 +0100
committerJordan Bracco <href@random.sh>2022-12-20 19:29:42 +0100
commite384daaf4c7d6b19431cc441865d9a4d98dcb420 (patch)
tree03ba9e0bf4a1d4053d780e57b8797bb469df64a6
parentFinish renaming IRC to Nola.Irc, refs T77. (diff)
fix version generation when branches have a slash in their name
-rw-r--r--mix.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index 1778206..2fd32d0 100644
--- a/mix.exs
+++ b/mix.exs
@@ -83,7 +83,7 @@ defmodule Nola.Mixfile do
defp version(v) do
{describe, 0} = System.cmd("git", ~w(describe --dirty --broken --all --tags --long))
- [_, rest] = String.split(describe, "/")
+ [_, rest] = String.split(describe, "/", parts: 2)
info = String.trim(rest)
env = cond do
Mix.env() == :prod -> ""