OSDN Git Service

Fix #2576
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Wed, 16 Jan 2013 16:31:11 +0000 (17:31 +0100)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Wed, 16 Jan 2013 16:31:11 +0000 (17:31 +0100)
lib/gitlab/satellite/edit_file_action.rb

index 336afc8..e9053f9 100644 (file)
@@ -49,7 +49,7 @@ module Gitlab
       protected
 
       def can_edit?(last_commit)
-        current_last_commit = @project.last_commit_for(ref, file_path).sha
+        current_last_commit = @project.repository.last_commit_for(ref, file_path).sha
         last_commit == current_last_commit
       end
     end