One can not simply call application modules from mix.exs
authorRoman Chvanikov <chvanikoff@pm.me>
Sat, 11 Jul 2020 13:09:46 +0000 (16:09 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Sat, 11 Jul 2020 13:09:46 +0000 (16:09 +0300)
mix.exs

diff --git a/mix.exs b/mix.exs
index 5cd06e8fd3aa7da1492ce064c98c5e71a012b26b..a775e54a45b310cdece80faf32ee0023ea9b2abf 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -234,7 +234,7 @@ defmodule Pleroma.Mixfile do
   defp version(version) do
     identifier_filter = ~r/[^0-9a-z\-]+/i
 
-    git_available? = Pleroma.Utils.command_available?("git")
+    git_available? = match?({_output, 0}, System.cmd("sh", ["-c", "command -v git"]))
 
     git_pre_release =
       if git_available? do