mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #1289 from ZogStriP/fix-git-version
fix: git-version isn't showing up
This commit is contained in:
commit
d4343487e6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue