summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 09:34:26 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 09:34:26 +0200
commitaa97ff7fde07a682db59bbcfbac21cf35d8acc08 (patch)
tree2eec50aad91fc7257ca3f709e4b48a28c42943cb /lib/extracts_path.rb
parentf9528bfb86817efa4af6eaab464936abb3f44ecb (diff)
downloadgitlab-ce-aa97ff7fde07a682db59bbcfbac21cf35d8acc08.tar.gz
Fixed tree logs for branches with slash. Fixed remember of path when switch branch
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index 5c96eac02e7..14201ae63ce 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -52,7 +52,7 @@ module ExtractsPath
# Remove project, actions and all other staff from path
input.gsub!(/^\/#{Regexp.escape(@project.path_with_namespace)}/, "")
- input.gsub!(/^\/(tree|commits|blame|blob)\//, "") # remove actions
+ input.gsub!(/^\/(tree|commits|blame|blob|refs)\//, "") # remove actions
input.gsub!(/\?.*$/, "") # remove stamps suffix
input.gsub!(/.atom$/, "") # remove rss feed
input.gsub!(/\/edit$/, "") # remove edit route part