diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-14 23:43:25 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-14 23:43:25 +0400 |
commit | 5f8255ac67e26d8d7dc98cff37ecae5eab4ab3cf (patch) | |
tree | 18a1b313e45f568f4ada7fc013363542d5dc581b /app/views/projects/_tree_item.html.haml | |
parent | 153f6cd86bff0f78abbee07feec6832b73535298 (diff) |
Fixed: invalid browse code for commit. Perfomance test added
Diffstat (limited to 'app/views/projects/_tree_item.html.haml')
-rw-r--r-- | app/views/projects/_tree_item.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_tree_item.html.haml b/app/views/projects/_tree_item.html.haml index 533c1484f7e..9ba33c1ef88 100644 --- a/app/views/projects/_tree_item.html.haml +++ b/app/views/projects/_tree_item.html.haml @@ -1,5 +1,5 @@ - file = params[:path] ? File.join(params[:path], content.name) : content.name -- content_commit = @project.repo.log(@branch, file, :max_count => 1).last +- content_commit = @project.repo.log(@commit.id, file, :max_count => 1).last - return unless content_commit %tr{ :class => "tree-item", :url => tree_file_project_path(@project, @commit.id, file) } %td.tree-item-file-name |