mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
fix: git-version isn't showing up
This commit is contained in:
parent
f996a8757a
commit
4ec9b3ea39
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user