fix: git-version isn't showing up

This commit is contained in:
Régis Hanol 2013-08-02 23:25:57 +02:00
parent f996a8757a
commit 4ec9b3ea39

View File

@ -105,7 +105,9 @@ module Discourse
def self.git_version def self.git_version
return $git_version if $git_version return $git_version if $git_version
f = Rails.root.to_s + "/lib/version"
# load the version stamped by the "build:stamp" task
f = Rails.root.to_s + "/config/version"
require f if File.exists?("#{f}.rb") require f if File.exists?("#{f}.rb")
begin begin