Skip to content

Commit e8d1d17

Browse files
author
Nicolas Rodriguez
committed
Fix routes definition loading
1 parent 52cc979 commit e8d1d17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/routes.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
end
2222

2323
# SMART HTTP
24-
match ':repo_path/*git_params', :prefix => RedmineGitolite::ConfigRedmine.get_setting(:http_server_subdir), :repo_path => /([^\/]+\/)*?[^\/]+\.git/, :to => 'smart_http#index'
24+
match ':repo_path/*git_params', :prefix => RedmineGitolite::ConfigRedmine.get_setting(:http_server_subdir),
25+
:repo_path => /([^\/]+\/)*?[^\/]+\.git/,
26+
:to => 'smart_http#index',
27+
:via => [:get, :post]
2528

2629
# POST RECEIVE
2730
match 'githooks/post-receive/:type/:projectid', :to => 'gitolite_hooks#post_receive', :via => [:post]

0 commit comments

Comments
 (0)