bugfix
authorAlex S <alex.strizhakov@gmail.com>
Sat, 15 Jun 2019 08:36:13 +0000 (16:36 +0800)
committerAlex S <alex.strizhakov@gmail.com>
Sat, 15 Jun 2019 08:36:13 +0000 (16:36 +0800)
mix.exs

diff --git a/mix.exs b/mix.exs
index f82ae5243ba520577720a3088c1b6fb97ba8a0f4..a52debc91887ffd945d614a05fb27d28128f26fa 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -208,7 +208,11 @@ defmodule Pleroma.Mixfile do
     branch_name =
       with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
            true <- branch_name != "master" do
-        "-" <> String.trim(branch_name)
+        branch_name =
+          String.trim(branch_name)
+          |> String.replace(~r/\W+/, "-")
+
+        "-" <> branch_name
       end
 
     full_version =