diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-04 00:01:13 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-07 01:51:01 +0300 |
commit | ddec2ed0dfb0981bf1f022f705470402e20ef9bc (patch) | |
tree | 97d0c4fef0049465f6cc91deea9a7c3cea85e943 /lib/gitlab/workhorse.rb | |
parent | 5ffb848ee6ecb66d4ff1b2d2bb21968f44f33f7e (diff) |
Add send_git_patch helper
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 6 |
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 } [ |