summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-14 16:47:27 +0000
committerrinpatch <rinpatch@sdf.org>2019-10-14 16:47:27 +0000
commit13966f150469e2e7b6e02ffc8a7ab65b7c7bfaa7 (patch)
treee3a284e6613f2b984617c811705005e373bbf74e /mix.exs
parent1f99abbeba88f852e02ac784d0ce7309785f3387 (diff)
parent2b6cd10b68c01bb16f94c911da6fce51511a1a5a (diff)
downloadpleroma-13966f150469e2e7b6e02ffc8a7ab65b7c7bfaa7.tar.gz
pleroma-13966f150469e2e7b6e02ffc8a7ab65b7c7bfaa7.zip
Merge branch 'backport/1.1-branch-name-change' into 'maint/1.1'
Backport/1.1 branch name change See merge request pleroma/pleroma!1841
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index a0534cccd..c0f3b105b 100644
--- a/mix.exs
+++ b/mix.exs
@@ -215,7 +215,10 @@ defmodule Pleroma.Mixfile do
with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
branch_name <- String.trim(branch_name),
branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
- true <- branch_name not in ["master", "HEAD"] do
+ true <-
+ !Enum.all?(["master", "HEAD", "release/", "stable"], fn name ->
+ String.starts_with?(name, branch_name)
+ end) do
branch_name =
branch_name
|> String.trim()