branch/tag memorization
This commit is contained in:
parent
912a383d9b
commit
fc34fc86c6
5 changed files with 26 additions and 0 deletions
|
@ -16,6 +16,7 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
refs_from_cookie
|
||||
@repo = project.repo
|
||||
@commit = @repo.commits.first
|
||||
@tree = @commit.tree
|
||||
|
@ -32,6 +33,7 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
|
||||
def tree
|
||||
refs_from_cookie
|
||||
@repo = project.repo
|
||||
@branch = if !params[:branch].blank?
|
||||
params[:branch]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue