diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-10 23:46:46 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-10 23:46:46 +0400 |
commit | 9a3d665919218ebe30fd1b10a70e75db16675bff (patch) | |
tree | 17fea18f66e3cdf00f33c0f4bdc520d13c8a9921 /app/controllers/projects/refs_controller.rb | |
parent | 35fb7d54081f21b757de26cb3e2e763a77720d6d (diff) |
Show last commit for Blob#show
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/refs_controller.rb')
-rw-r--r-- | app/controllers/projects/refs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/refs_controller.rb b/app/controllers/projects/refs_controller.rb index 16621c0371e..7b8026cff9f 100644 --- a/app/controllers/projects/refs_controller.rb +++ b/app/controllers/projects/refs_controller.rb @@ -34,7 +34,7 @@ class Projects::RefsController < Projects::ApplicationController contents = tree.entries @logs = contents.map do |content| file = params[:path] ? File.join(params[:path], content.name) : content.name - last_commit = @repo.commits(@commit.id, file, 1).last + last_commit = @repo.last_commit_for_path(@commit.id, file) { file_name: content.name, commit: last_commit |