diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-16 20:31:11 +0400 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-16 20:31:11 +0400 |
commit | 592d626dad76432dc67eff2fa3dc1802a6c691e7 (patch) | |
tree | 95907fc8c26679ad56aad8f9e3dd02aedebb6f18 /lib | |
parent | 0dd8a26a3a04cc59d13d83c3fbae4b39acddab67 (diff) |
Fix #2576
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/satellite/edit_file_action.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/satellite/edit_file_action.rb b/lib/gitlab/satellite/edit_file_action.rb index 336afc881c2..e9053f904c0 100644 --- a/lib/gitlab/satellite/edit_file_action.rb +++ b/lib/gitlab/satellite/edit_file_action.rb @@ -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 |