2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

fallback to hardcoded version if installed and not using git

This commit is contained in:
Sam 2015-05-22 11:18:58 +10:00
parent 0681d8f150
commit df5be88a77

View file

@ -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