aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-06-15 16:36:13 +0800
committerAlex S <alex.strizhakov@gmail.com>2019-06-15 16:36:13 +0800
commite02f22d7790865be3f4d0b3d709d707c020a9ab7 (patch)
treeb37bad5cb9074f7582ac72db89d23f66da272996
parent501705438f3223363312cc955a8e7b06722a1265 (diff)
downloadpleroma-e02f22d7790865be3f4d0b3d709d707c020a9ab7.tar.gz
bugfix
-rw-r--r--mix.exs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index f82ae5243..a52debc91 100644
--- 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 =