From e02f22d7790865be3f4d0b3d709d707c020a9ab7 Mon Sep 17 00:00:00 2001 From: Alex S Date: Sat, 15 Jun 2019 16:36:13 +0800 Subject: [PATCH] bugfix --- mix.exs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = -- 2.45.2