Merge pull request #1289 from ZogStriP/fix-git-version

fix: git-version isn't showing up
This commit is contained in:
Robin Ward 2013-08-02 14:29:53 -07:00
commit d4343487e6
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ module Discourse
def self.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")
begin