Fallback GitStatus version code to mix env value

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-23 18:55:47 +02:00
parent 35aafa8295
commit ce7b8e05a1
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -9,8 +9,9 @@ defmodule Mobilizon.Service.GitStatus do
String.trim(hash) String.trim(hash)
_ -> _ ->
Logger.warn("Could not read git commit hash") # Fallback on Mix version
"UNKNOWN" Logger.warn("Could not read git commit hash, using Mix version code instead.")
Mix.Project.config()[:version]
end) end)
@doc """ @doc """