Correct version parser branch name detection
authorrinpatch <rinpatch@sdf.org>
Mon, 14 Oct 2019 15:45:16 +0000 (18:45 +0300)
committerrinpatch <rinpatch@sdf.org>
Mon, 14 Oct 2019 16:34:38 +0000 (19:34 +0300)
mix.exs

diff --git a/mix.exs b/mix.exs
index f61cc69235583c8cabad2eea4de46a95f57b4983..c0f3b105bffaa27411e192c66acb2f07fc9de471 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -217,7 +217,7 @@ defmodule Pleroma.Mixfile do
            branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
            true <-
              !Enum.all?(["master", "HEAD", "release/", "stable"], fn name ->
-               name != branch_name
+               String.starts_with?(name, branch_name)
              end) do
         branch_name =
           branch_name