From 4ec9b3ea39178cec71f004063222923938b428d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 2 Aug 2013 23:25:57 +0200 Subject: [PATCH] fix: git-version isn't showing up --- lib/discourse.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 01b352720..145a15bd1 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -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