From 429cc92944b7dd2c2014fcaa9b2adff768adad9c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 27 Jan 2022 22:44:56 +0100 Subject: [PATCH] Revert "Delete app-4-fix-missing-git-repository.patch" This reverts commit fbf5ec199d9a9168533dd83dec4754afc22ebe71. --- .../app-4-fix-missing-git-repository.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sources/patches/app-4-fix-missing-git-repository.patch diff --git a/sources/patches/app-4-fix-missing-git-repository.patch b/sources/patches/app-4-fix-missing-git-repository.patch new file mode 100644 index 0000000..c02d177 --- /dev/null +++ b/sources/patches/app-4-fix-missing-git-repository.patch @@ -0,0 +1,22 @@ +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 + $full_version ||= + begin + git_cmd = 'git describe --dirty --match "v[0-9]*"' +- self.try_git(git_cmd, 'unknown') ++ self.try_git(git_cmd, Discourse::VERSION::STRING) + end + end + +@@ -448,7 +448,7 @@ module Discourse + $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 + end