summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-14 18:38:51 +0300
committerrinpatch <rinpatch@sdf.org>2019-10-14 18:38:51 +0300
commit0e9243e8a28e957f2a9401eb153cc2b27723d0a3 (patch)
treeb241da81594d9eed666052aef8a93d86a0a96c90 /mix.exs
parente3b4a3e96b2ffbc6d920155cd41687414045d4d6 (diff)
downloadpleroma-0e9243e8a28e957f2a9401eb153cc2b27723d0a3.tar.gz
pleroma-0e9243e8a28e957f2a9401eb153cc2b27723d0a3.zip
Preparations for renaming `master` to `stable`
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 3a605b455..0ae9c3f05 100644
--- a/mix.exs
+++ b/mix.exs
@@ -220,7 +220,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 ->
+ name != branch_name
+ end) do
branch_name =
branch_name
|> String.trim()