From 6e8c5ab2af155b06df3383bef5b888047b3b5231 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 Jan 2026 14:18:08 +0100 Subject: [PATCH 1/2] fix repository display error --- lib/redmine_git_hosting/cache/abstract_cache.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine_git_hosting/cache/abstract_cache.rb b/lib/redmine_git_hosting/cache/abstract_cache.rb index 171a60d15..bc3c4dee2 100644 --- a/lib/redmine_git_hosting/cache/abstract_cache.rb +++ b/lib/redmine_git_hosting/cache/abstract_cache.rb @@ -49,14 +49,14 @@ def logger def time_limit return if max_cache_time.to_i.negative? # No expiration needed - current_time = ActiveRecord::Base.default_timezone == :utc ? Time.now.utc : Time.zone.now + current_time = ActiveRecord.default_timezone == :utc ? Time.now.utc : Time.zone.now current_time - max_cache_time end def valid_cache_entry?(cached_entry_date) return true if max_cache_time.to_i.negative? # No expiration needed - current_time = ActiveRecord::Base.default_timezone == :utc ? Time.now.utc : Time.zone.now + current_time = ActiveRecord.default_timezone == :utc ? Time.now.utc : Time.zone.now expired = current_time.to_i - cached_entry_date.to_i > max_cache_time !expired end From fe5cc9c4c8fae75072b12c239e1b0f0ee88c9f23 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 22 Jan 2026 15:15:13 +0100 Subject: [PATCH 2/2] fix diff view --- .../patches/repositories_controller_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_git_hosting/patches/repositories_controller_patch.rb b/lib/redmine_git_hosting/patches/repositories_controller_patch.rb index fa0919957..ec76bc48d 100644 --- a/lib/redmine_git_hosting/patches/repositories_controller_patch.rb +++ b/lib/redmine_git_hosting/patches/repositories_controller_patch.rb @@ -152,7 +152,7 @@ def diff_with_options @changeset = @repository.find_changeset_by_name @rev @changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : nil @diff_format_revisions = @repository.diff_format_revisions @changeset, @changeset_to - render :diff, formats: :html, layout: 'base.html.erb' + render :diff, formats: :html, layout: 'base' end end end