summaryrefslogtreecommitdiff
path: root/app/services/commits
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-05 18:49:45 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 13:14:51 -0500
commit91e6e32d130308496065d2efbf71d61e0eeff784 (patch)
tree460d9980867c6739490dcfdb153f1940c61241f4 /app/services/commits
parentb36319a17cf82ee9782a572fab741938662a1c6b (diff)
downloadgitlab-ce-91e6e32d130308496065d2efbf71d61e0eeff784.tar.gz
Make it work for merge commits.
Diffstat (limited to 'app/services/commits')
-rw-r--r--app/services/commits/revert_service.rb4
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)