diff options
author | lain <lain@soykaf.club> | 2019-06-04 16:44:56 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-06-04 16:58:40 +0200 |
commit | b5e3b1e58ad9f4d8237821572e4d149eea881ff2 (patch) | |
tree | 99ce65fbba280d9d3ab284142153e653f40a9739 | |
parent | 0eb7464c10df109e8aacf734bb092f69192ab5c2 (diff) | |
download | pleroma-b5e3b1e58ad9f4d8237821572e4d149eea881ff2.tar.gz pleroma-b5e3b1e58ad9f4d8237821572e4d149eea881ff2.zip |
Mix: Swallow git error messages during version number handling.
Otherwise sometimes a 'fatal' message will be printed, confusing users.
-rw-r--r-- | mix.exs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -157,7 +157,8 @@ defmodule Pleroma.Mixfile do # * the mix environment if different than prod defp version(version) do {git_tag, git_pre_release} = - with {tag, 0} <- System.cmd("git", ["describe", "--tags", "--abbrev=0"]), + with {tag, 0} <- + System.cmd("git", ["describe", "--tags", "--abbrev=0"], stderr_to_stdout: true), tag = String.trim(tag), {describe, 0} <- System.cmd("git", ["describe", "--tags", "--abbrev=8"]), describe = String.trim(describe), |