This looks like debugging cruft added in 97bc298 (implement
ref version dropdown, 2012-04-17), and hasn't been kept up
to date (it tries to show the rebase page but doesn't
actually work).

This isn't a huge deal, but requesting `/test.zip` (which
some spam scripts do) results in an exception.
This commit is contained in:
Jeff King 2017-10-11 13:20:51 -04:00
Родитель e40208c99e
Коммит 775101e178
2 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -12,10 +12,6 @@ class DocController < ApplicationController
def ref
end
def test
render 'doc/rebase'
end
def man
return redirect_to docs_path unless @doc_file
unless @doc_version.respond_to?(:version)

Просмотреть файл

@ -24,7 +24,6 @@ Gitscm::Application.routes.draw do
get "/docs/:file.html" => "doc#man", :as => :doc_file_html, :file => /[\w\-\.]+/
get "/docs/:file" => "doc#man", :as => :doc_file, :file => /[\w\-\.]+/
get "/docs/:file/:version" => "doc#man", :version => /[^\/]+/
get "/test" => "doc#test"
get "/doc/ext" => "doc#ext"
%w{man ref git}.each do |path|