summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-07-03 17:01:13 -0400
committerDouwe Maan <douwe@selenight.nl>2016-07-06 18:51:01 -0400
commitddec2ed0dfb0981bf1f022f705470402e20ef9bc (patch)
tree97d0c4fef0049465f6cc91deea9a7c3cea85e943 /lib
parent5ffb848ee6ecb66d4ff1b2d2bb21968f44f33f7e (diff)
downloadgitlab-ce-ddec2ed0dfb0981bf1f022f705470402e20ef9bc.tar.gz
Add send_git_patch helper
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/workhorse.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 41b6854cbe1..bc0193a6c32 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -50,11 +50,11 @@ module Gitlab
]
end
- def send_git_patch(repository, from, to)
+ def send_git_patch(repository, diff_refs)
params = {
'RepoPath' => repository.path_to_repo,
- 'ShaFrom' => from,
- 'ShaTo' => to
+ 'ShaFrom' => diff_refs.start_sha,
+ 'ShaTo' => diff_refs.head_sha
}
[