We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5888b52 commit a0447e9Copy full SHA for a0447e9
config/routes.rb
@@ -41,7 +41,7 @@
41
42
# Enable SmartHTTP Grack support
43
mount Grack::Bundle.new({}),
44
- at: (RedmineGitHosting::Config.http_server_subdir rescue '/'),
+ at: RedmineGitHosting::Config.http_server_subdir,
45
constraints: lambda { |request| /[-\/\w\.]+\.git\//.match(request.path_info) },
46
via: [:get, :post]
47
lib/redmine_git_hosting/config/gitolite_access.rb
@@ -34,7 +34,8 @@ def https_server_domain
34
35
36
def http_server_subdir
37
- get_setting(:http_server_subdir)
+ subdir = get_setting(:http_server_subdir)
38
+ subdir.empty? ? '/' : subdir
39
end
40
0 commit comments