Skip to content

Commit 6110f05

Browse files
author
root
committed
Fix hooks url
1 parent 43a3b0a commit 6110f05

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Diff for: lib/redmine_gitolite/config.rb

+1-9
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,7 @@ def self.my_root_url(ssl = false)
104104

105105

106106
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")
107+
return File.join("#{Setting.protocol}://", Setting.host_name, "/githooks/post-receive/redmine")
116108
end
117109

118110

0 commit comments

Comments
 (0)