mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
fix: git-version isn't showing up
This commit is contained in:
parent
f996a8757a
commit
4ec9b3ea39
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue