Merge branch 'fallback-git-status-to-mix-env' into 'master'
Fallback GitStatus version code to mix env value See merge request framasoft/mobilizon!642
This commit is contained in:
commit
427773cd48
@ -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 """
|
||||||
|
Loading…
Reference in New Issue
Block a user