mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-21 23:44:30 +00:00
Fallback GitStatus version code to mix env value
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
35aafa8295
commit
ce7b8e05a1
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,9 @@ defmodule Mobilizon.Service.GitStatus do
|
|||
String.trim(hash)
|
||||
|
||||
_ ->
|
||||
Logger.warn("Could not read git commit hash")
|
||||
"UNKNOWN"
|
||||
# Fallback on Mix version
|
||||
Logger.warn("Could not read git commit hash, using Mix version code instead.")
|
||||
Mix.Project.config()[:version]
|
||||
end)
|
||||
|
||||
@doc """
|
||||
|
|
Loading…
Reference in a new issue