summaryrefslogtreecommitdiff
path: root/app/controllers/tree_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-04 21:45:30 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-04 21:45:30 +0200
commitef5b36eaaf92db19ae90cc599c3f64b865bdc4d5 (patch)
tree4dd03fbf865b82a93cdec1f5d9d44c6b1d211d02 /app/controllers/tree_controller.rb
parentafbdbb0c959affbdb8725eafb8169025a8aede1e (diff)
downloadgitlab-ce-ef5b36eaaf92db19ae90cc599c3f64b865bdc4d5.tar.gz
Fixed protected branches and file edit
Diffstat (limited to 'app/controllers/tree_controller.rb')
-rw-r--r--app/controllers/tree_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tree_controller.rb b/app/controllers/tree_controller.rb
index 725f48fa014..2151bd7cbbd 100644
--- a/app/controllers/tree_controller.rb
+++ b/app/controllers/tree_controller.rb
@@ -22,7 +22,7 @@ class TreeController < ProjectResourceController
end
def edit
- @last_commit = @project.last_commit_for(@ref, @path).sha
+ @last_commit = @project.repository.last_commit_for(@ref, @path).sha
end
def update