summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-15 15:51:00 +0100
committerJames Lopez <james@jameslopez.es>2016-02-15 15:51:00 +0100
commit20e79f714a4b98526d5eeffc82c0de89c8369c4e (patch)
tree62c4c06036a2afb612e39778be812e34b05767ab /app/workers
parent83a81ffc5df04de74b8a93737ddc54d26981baef (diff)
downloadgitlab-ce-20e79f714a4b98526d5eeffc82c0de89c8369c4e.tar.gz
refactored GitPushService and updated spec
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/post_receive.rb7
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