2024-07-26 14:21:38 +02:00
|
|
|
From 2319de5a4759f17c11a6000779d1c8840c342771 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix@piedallu.me>
|
|
|
|
Date: Fri, 26 Jul 2024 14:19:22 +0200
|
|
|
|
Subject: [PATCH 2/3] Fix missing git commands in repository
|
|
|
|
|
|
|
|
---
|
|
|
|
lib/discourse.rb | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
2019-06-25 21:22:10 +02:00
|
|
|
diff --git a/lib/discourse.rb b/lib/discourse.rb
|
2024-07-26 14:21:38 +02:00
|
|
|
index 1af04378..6207c8f5 100644
|
2019-06-25 21:22:10 +02:00
|
|
|
--- a/lib/discourse.rb
|
|
|
|
+++ b/lib/discourse.rb
|
2024-07-26 14:21:38 +02:00
|
|
|
@@ -842,7 +842,7 @@ module Discourse
|
|
|
|
@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
|
2024-07-26 14:21:38 +02:00
|
|
|
|
|
|
|
@@ -850,7 +850,8 @@ module Discourse
|
|
|
|
@last_commit_date ||=
|
|
|
|
begin
|
|
|
|
git_cmd = 'git log -1 --format="%ct"'
|
|
|
|
- seconds = self.try_git(git_cmd, nil)
|
|
|
|
+ # Note(decentral1se): Output from actual command in the v3.2.4 branch
|
|
|
|
+ seconds = self.try_git(git_cmd, '1721046633')
|
|
|
|
seconds.nil? ? nil : DateTime.strptime(seconds, "%s")
|
|
|
|
end
|
2019-07-26 09:17:23 +02:00
|
|
|
end
|
2024-07-26 14:21:38 +02:00
|
|
|
--
|
|
|
|
2.45.2
|
|
|
|
|