diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-03 17:01:13 -0400 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-06 18:51:01 -0400 |
commit | ddec2ed0dfb0981bf1f022f705470402e20ef9bc (patch) | |
tree | 97d0c4fef0049465f6cc91deea9a7c3cea85e943 /lib | |
parent | 5ffb848ee6ecb66d4ff1b2d2bb21968f44f33f7e (diff) | |
download | gitlab-ce-ddec2ed0dfb0981bf1f022f705470402e20ef9bc.tar.gz |
Add send_git_patch helper
Diffstat (limited to 'lib')
-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 } [ |