summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,