From 17a2d3241889c117ac5bb15d0609837592b16cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 30 Aug 2024 11:50:04 +0200 Subject: [PATCH] Fix missing git commands in repository --- lib/git_utils.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/git_utils.rb b/lib/git_utils.rb index fb664fe2..aa81fd2d 100644 --- a/lib/git_utils.rb +++ b/lib/git_utils.rb @@ -11,12 +11,13 @@ class GitUtils end def self.full_version - self.try_git('git describe --dirty --match "v[0-9]*" 2> /dev/null', "unknown") + self.try_git('git describe --dirty --match "v[0-9]*" 2> /dev/null', Discourse::VERSION::STRING) end def self.last_commit_date 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 -- 2.43.0