summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-14 16:08:53 +0000
committerrinpatch <rinpatch@sdf.org>2019-10-14 16:08:53 +0000
commit8b39d6f93cc6f9aecc76d67a686087366c3c50fd (patch)
tree39e31c70233a4702b479666dd1fcf23c1b5f19ba /mix.exs
parente3b4a3e96b2ffbc6d920155cd41687414045d4d6 (diff)
parent17b8896c40fa1c4aaab96f82fd07d5f5f2698400 (diff)
downloadpleroma-8b39d6f93cc6f9aecc76d67a686087366c3c50fd.tar.gz
pleroma-8b39d6f93cc6f9aecc76d67a686087366c3c50fd.zip
Merge branch 'master-to-stable' into 'develop'
Preparations for renaming `master` to `stable` See merge request pleroma/pleroma!1840
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..329ce3d89 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 ->
+ String.starts_with?(name, branch_name)
+ end) do
branch_name =
branch_name
|> String.trim()