summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-09-19 15:59:02 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-09-19 15:59:02 +0200
commit6979324778eef81aaacd685131083975b063edfe (patch)
tree0d50af8dabdd63f5bac005f65f0568adfee8f450
parentc0bea016d4f415a89154af93bddc49a7b9067ea9 (diff)
downloadgitlab-ce-gitaly-prepare-cherry-pick-revert.tar.gz
-rw-r--r--app/models/repository.rb10
-rw-r--r--lib/gitlab/git/repository.rb4
2 files changed, 10 insertions, 4 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 2117e932ede..804e8979f19 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -860,7 +860,10 @@ class Repository
with_cache_hooks do
raw_repository.revert(
- user, commit.raw, branch_name, message,
+ user: user,
+ commit: commit.raw,
+ branch_name: branch_name,
+ message: message,
start_branch_name: start_branch_name,
start_repository: start_project.repository.raw_repository
)
@@ -873,7 +876,10 @@ class Repository
with_cache_hooks do
raw_repository.cherry_pick(
- user, commit.raw, branch_name, message,
+ user: user,
+ commit: commit.raw,
+ branch_name: branch_name,
+ message: message,
start_branch_name: start_branch_name,
start_repository: start_project.repository.raw_repository
)
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 5fe9a268ab4..e2d68c667da 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -685,7 +685,7 @@ module Gitlab
nil
end
- def revert(user, commit, branch_name, message, start_branch_name:, start_repository:)
+ def revert(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:)
OperationService.new(user, self).with_branch(
branch_name,
start_branch_name: start_branch_name,
@@ -720,7 +720,7 @@ module Gitlab
tree_id
end
- def cherry_pick(user, commit, branch_name, message, start_branch_name:, start_repository:)
+ def cherry_pick(user:, commit:, branch_name:, message:, start_branch_name:, start_repository:)
OperationService.new(user, self).with_branch(
branch_name,
start_branch_name: start_branch_name,