diff options
author | James Lopez <james@jameslopez.es> | 2016-02-15 15:51:00 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-15 15:51:00 +0100 |
commit | 20e79f714a4b98526d5eeffc82c0de89c8369c4e (patch) | |
tree | 62c4c06036a2afb612e39778be812e34b05767ab /app/workers | |
parent | 83a81ffc5df04de74b8a93737ddc54d26981baef (diff) | |
download | gitlab-ce-20e79f714a4b98526d5eeffc82c0de89c8369c4e.tar.gz |
refactored GitPushService and updated spec
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_receive.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index 80081ac5f49..9e7934b84d8 100644 --- a/app/workers/post_receive.rb +++ b/app/workers/post_receive.rb @@ -38,7 +38,12 @@ class PostReceive if Gitlab::Git.tag_ref?(ref) GitTagPushService.new.execute(project, @user, oldrev, newrev, ref) else - GitPushService.new(project, @user, oldrev, newrev, ref).execute + GitPushService.new(project, @user, + { + oldrev: oldrev, + newrev: newrev, + ref: ref + }).execute end end end |