Fix hiding branch name logic

This commit is contained in:
rinpatch 2019-10-14 22:13:18 +03:00
parent 8b39d6f93c
commit 2f0ed5f6c4

View File

@ -221,7 +221,7 @@ defp version(version) do
branch_name <- String.trim(branch_name),
branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
true <-
!Enum.all?(["master", "HEAD", "release/", "stable"], fn name ->
!Enum.any?(["master", "HEAD", "release/", "stable"], fn name ->
String.starts_with?(name, branch_name)
end) do
branch_name =