diff options
Diffstat (limited to 'app/services/commits')
-rw-r--r-- | app/services/commits/revert_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/commits/revert_service.rb b/app/services/commits/revert_service.rb index e1b88a9d848..730e2017e8d 100644 --- a/app/services/commits/revert_service.rb +++ b/app/services/commits/revert_service.rb @@ -24,9 +24,7 @@ module Commits raw_repo = repository.rugged # Create branch with revert commit - reverted = repository.revert(current_user, @commit.id, - @commit.revert_branch_name, @target_branch, - @commit.revert_message, @create_merge_request) + reverted = repository.revert(current_user, @commit, @target_branch, @create_merge_request) unless @create_merge_request repository.rm_branch(current_user, @commit.revert_branch_name) |