From 99722aa1182f0beb822cd2ee63036fa9f36f1537 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 26 Jul 2019 09:17:23 +0200 Subject: [PATCH 1/2] Add seconds patch to the version patch --- sources/patches/app-4-Fix-version-detection.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sources/patches/app-4-Fix-version-detection.patch b/sources/patches/app-4-Fix-version-detection.patch index efe97d0..c02d177 100644 --- a/sources/patches/app-4-Fix-version-detection.patch +++ b/sources/patches/app-4-Fix-version-detection.patch @@ -10,3 +10,13 @@ index 2b53a91eb3..eec55647d5 100644 + 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 From 6c18583eafefc7efedb6a20e4212f6c81c41683f Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 26 Jul 2019 09:17:41 +0200 Subject: [PATCH 2/2] Rename patch to show more general fix approach --- ...ion-detection.patch => app-4-fix-missing-git-repository.patch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sources/patches/{app-4-Fix-version-detection.patch => app-4-fix-missing-git-repository.patch} (100%) diff --git a/sources/patches/app-4-Fix-version-detection.patch b/sources/patches/app-4-fix-missing-git-repository.patch similarity index 100% rename from sources/patches/app-4-Fix-version-detection.patch rename to sources/patches/app-4-fix-missing-git-repository.patch