diff options
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-x | hooks/post-receive | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index 30f4be1..fb4f5ab 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -6,13 +6,12 @@ refs = $stdin.read key_id = ENV.delete('GL_ID') gl_repository = ENV['GL_REPOSITORY'] -repo_path = Dir.pwd require_relative '../lib/gitlab_custom_hook' require_relative '../lib/gitlab_post_receive' -if GitlabPostReceive.new(gl_repository, repo_path, key_id, refs).exec && - GitlabCustomHook.new(repo_path, key_id).post_receive(refs) +if GitlabPostReceive.new(gl_repository, key_id, refs).exec && + GitlabCustomHook.new(Dir.pwd, key_id).post_receive(refs) exit 0 else exit 1 |