From: Alex S Date: Sat, 15 Jun 2019 08:36:13 +0000 (+0800) Subject: bugfix X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e02f22d7790865be3f4d0b3d709d707c020a9ab7;p=akkoma bugfix --- 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 =