Correct version parser branch name detection

This commit is contained in:
rinpatch 2019-10-14 18:45:16 +03:00
parent 164f42c5f8
commit 2b6cd10b68
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ defp version(version) 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