summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-receive5
1 files changed, 4 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 30f4be1..5098158 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -9,9 +9,12 @@ gl_repository = ENV['GL_REPOSITORY']
repo_path = Dir.pwd
require_relative '../lib/gitlab_custom_hook'
+require_relative '../lib/hooks_utils'
require_relative '../lib/gitlab_post_receive'
-if GitlabPostReceive.new(gl_repository, repo_path, key_id, refs).exec &&
+push_opts = HooksUtils.get_push_options
+
+if GitlabPostReceive.new(gl_repository, repo_path, key_id, refs, push_opts).exec &&
GitlabCustomHook.new(repo_path, key_id).post_receive(refs)
exit 0
else