2019-06-25 21:22:10 +02:00
|
|
|
diff --git a/lib/discourse.rb b/lib/discourse.rb
|
|
|
|
index 2b53a91eb3..eec55647d5 100644
|
|
|
|
--- a/lib/discourse.rb
|
|
|
|
+++ b/lib/discourse.rb
|
|
|
|
@@ -439,7 +439,7 @@ module Discourse
|
2022-07-24 16:38:00 +02:00
|
|
|
def self.full_version
|
|
|
|
@full_version ||= begin
|
|
|
|
git_cmd = 'git describe --dirty --match "v[0-9]*" 2> /dev/null'
|
|
|
|
- self.try_git(git_cmd, 'unknown')
|
|
|
|
+ self.try_git(git_cmd, Discourse::VERSION::STRING)
|
|
|
|
end
|
2019-06-25 21:22:10 +02:00
|
|
|
end
|
2019-07-26 09:17:23 +02:00
|
|
|
|
|
|
|
@@ -448,7 +448,7 @@ module Discourse
|
2022-07-24 16:38:00 +02:00
|
|
|
def self.last_commit_date
|
|
|
|
@last_commit_date ||= begin
|
|
|
|
git_cmd = 'git log -1 --format="%ct"'
|
|
|
|
- seconds = self.try_git(git_cmd, nil)
|
|
|
|
+ seconds = '1563199245' # Note(decentral1se): Output from actual command in the v2.3.2 branch
|
|
|
|
seconds.nil? ? nil : DateTime.strptime(seconds, '%s')
|
|
|
|
end
|
2019-07-26 09:17:23 +02:00
|
|
|
end
|