diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-19 14:40:39 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-19 14:40:39 +0300 |
commit | a6e3169cfc5657e5819b3e018bf4c3cdf1c1377a (patch) | |
tree | c1a70ef3aa57e9b0278ba6a9a23bf7b39ac63df4 /mix.exs | |
parent | a0a1361888a3986d589720a7eb39d49c913154f2 (diff) | |
download | pleroma-a6e3169cfc5657e5819b3e018bf4c3cdf1c1377a.tar.gz pleroma-a6e3169cfc5657e5819b3e018bf4c3cdf1c1377a.zip |
Make possible to override the branch name via a env variable
This is useful for the CI builds because they have a detached HEAD or
for emulating a feature that is availible only on a particular branch
(e.g pleroma_ctl downloads CI artifacts only for develop and master)
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -207,6 +207,7 @@ defmodule Pleroma.Mixfile do branch_name = with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]), + branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name, true <- branch_name != "master" do branch_name = String.trim(branch_name) |