fallback to hardcoded version if installed and not using git
This commit is contained in:
parent
0681d8f150
commit
df5be88a77
|
@ -236,7 +236,7 @@ module Discourse
|
|||
begin
|
||||
$git_version ||= `git rev-parse HEAD`.strip
|
||||
rescue
|
||||
$git_version = "unknown"
|
||||
$git_version = Discourse::VERSION::STRING
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue