File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ def included(receiver)
14
14
module ClassMethods
15
15
16
16
17
+ def check_cache
18
+ @gitolite_home_dir = nil
19
+ end
20
+
21
+
17
22
def redmine_user
18
23
@redmine_user ||= ( %x[whoami] ) . chomp . strip
19
24
end
Original file line number Diff line number Diff line change @@ -5,15 +5,31 @@ module Patches
5
5
module SettingPatch
6
6
7
7
def self . included ( base )
8
+ base . send ( :extend , ClassMethods )
8
9
base . send ( :include , InstanceMethods )
9
10
base . class_eval do
10
11
unloadable
11
12
12
13
before_save :save_git_hosting_values
13
14
after_commit :restore_git_hosting_values
15
+
16
+ class << self
17
+ alias_method_chain :check_cache , :git_hosting
18
+ end
14
19
end
15
20
end
16
21
22
+
23
+ module ClassMethods
24
+
25
+ def check_cache_with_git_hosting
26
+ check_cache_without_git_hosting
27
+ RedmineGitHosting ::Config . check_cache
28
+ end
29
+
30
+ end
31
+
32
+
17
33
module InstanceMethods
18
34
19
35
private
You can’t perform that action at this time.
0 commit comments