We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43a3b0a commit 6110f05Copy full SHA for 6110f05
lib/redmine_gitolite/config.rb
@@ -104,15 +104,7 @@ def self.my_root_url(ssl = false)
104
105
106
def self.gitolite_hooks_url
107
- if https_server_domain != '' && https_server_domain.split(':')[0] != 'localhost'
108
- scheme = "https://"
109
- server_domain = my_root_url(true)
110
- else
111
- scheme = "http://"
112
- server_domain = my_root_url(false)
113
- end
114
-
115
- return File.join(scheme, server_domain, "/githooks/post-receive/redmine")
+ return File.join("#{Setting.protocol}://", Setting.host_name, "/githooks/post-receive/redmine")
116
end
117
118
0 commit comments