diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-17 17:23:00 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-05-17 20:59:26 +0300 |
commit | d3b24a7638de71ee1286200978e0b6d0b33d0753 (patch) | |
tree | 498c4ed238cae6026acc38cb087a3152ee20dfa3 /app/controllers/projects/tree_controller.rb | |
parent | fb67ea491ba86cb012e58d0e338039acd61400dd (diff) |
Show last commit for current tree on tree page
Diffstat (limited to 'app/controllers/projects/tree_controller.rb')
-rw-r--r-- | app/controllers/projects/tree_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/tree_controller.rb b/app/controllers/projects/tree_controller.rb index 3ce65b29b3c..f8eb8e00a5d 100644 --- a/app/controllers/projects/tree_controller.rb +++ b/app/controllers/projects/tree_controller.rb @@ -24,6 +24,8 @@ class Projects::TreeController < Projects::ApplicationController end end + @last_commit = @repository.last_commit_for_path(@commit.id, @tree.path) || @commit + respond_to do |format| format.html # Disable cache so browser history works |