summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-19 11:40:13 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-19 11:40:13 +0200
commit157d891615bbc9d1176b2149cfa5193b9aa4773c (patch)
tree3f4bd1bd6dd90bc206312d6dc1b2e102c54d9f2f /app/controllers/projects_controller.rb
parent8adeda37b55fc992e3cb15422cae5d9646640630 (diff)
downloadgitlab-ce-157d891615bbc9d1176b2149cfa5193b9aa4773c.tar.gz
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 73200396ecc..9f0cce468b1 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -246,6 +246,8 @@ class ProjectsController < ApplicationController
project.repository_exists? && !project.empty_repo?
end
+ # Override get_id from ExtractsPath, which returns the branch and file path
+ # for the blob/tree, which in this case is just the root of the default branch.
def get_id
project.repository.root_ref
end