File tree 2 files changed +30
-6
lines changed
app/models/concerns/gitolitable
lib/redmine_git_hosting/patches
2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,6 @@ module Gitolitable
2
2
module Paths
3
3
extend ActiveSupport ::Concern
4
4
5
- # This is the (possibly non-unique) basename for the Gitolite repository
6
- #
7
- def redmine_name
8
- identifier . blank? ? project . identifier : identifier
9
- end
10
-
11
5
12
6
# This is the repository path from Redmine point of view.
13
7
# It is used to build HTTP(s) urls (including GoLang url).
Original file line number Diff line number Diff line change
1
+ require_dependency 'repository'
2
+
3
+ module RedmineGitHosting
4
+ module Patches
5
+ module RepositoryPatch
6
+
7
+ def self . included ( base )
8
+ base . send ( :include , InstanceMethods )
9
+ base . class_eval do
10
+ unloadable
11
+ end
12
+ end
13
+
14
+ module InstanceMethods
15
+
16
+ # This is the (possibly non-unique) basename for the Gitolite repository
17
+ #
18
+ def redmine_name
19
+ identifier . blank? ? project . identifier : identifier
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+ end
26
+ end
27
+
28
+ unless Repository . included_modules . include? ( RedmineGitHosting ::Patches ::RepositoryPatch )
29
+ Repository . send ( :include , RedmineGitHosting ::Patches ::RepositoryPatch )
30
+ end
You can’t perform that action at this time.
0 commit comments