summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2015-10-01 17:05:20 +0300
committerCristian Bica <cristian.bica@gmail.com>2015-10-01 17:05:20 +0300
commitc5280434399ee489eebda254b2d246252df68f2b (patch)
tree4a208c29c40202d5341534e5f822aea120d3a2b1 /app/controllers/projects_controller.rb
parent2e8a3e3996f47a5b436bce9a6bbb61ca0a351cab (diff)
downloadgitlab-ce-c5280434399ee489eebda254b2d246252df68f2b.tar.gz
Allow users to select the Files view as default project view
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 213c2a7173b..7158d4b49ac 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -89,7 +89,10 @@ class ProjectsController < ApplicationController
if current_user
@membership = @project.project_member_by_id(current_user.id)
end
-
+ @ref = "master"
+ @id = "master"
+ @commit = @project.repository.commit(@ref)
+ @tree = @project.repository.tree(@commit.id)
render :show
end
else