summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorSato Hiroyuki <sathiroyuki@gmail.com>2013-03-06 13:53:30 +0900
committerSato Hiroyuki <sathiroyuki@gmail.com>2013-03-06 16:36:10 +0900
commite7a67a55832aa8d7bf7d52ac07bf2850c9118633 (patch)
treefb28fa5fb9646e5508ebc26b805b1e1080dd16c5 /lib/extracts_path.rb
parentbb63459d537fcd658be0638527e33fc1df56a48f (diff)
downloadgitlab-ce-e7a67a55832aa8d7bf7d52ac07bf2850c9118633.tar.gz
Don't set format manually, bacause set in routing.
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index fd0050cfd5f..66b2f450545 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -105,12 +105,6 @@ module ExtractsPath
# Automatically renders `not_found!` if a valid tree path could not be
# resolved (e.g., when a user inserts an invalid path or ref).
def assign_ref_vars
- # Handle formats embedded in the id
- if params[:id].ends_with?('.atom')
- params[:id].gsub!(/\.atom$/, '')
- request.format = :atom
- end
-
path = CGI::unescape(request.fullpath.dup)
@ref, @path = extract_ref(path)