diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-17 12:31:44 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-18 14:14:31 +0200 |
commit | bc5aea42748633013a3e50d699a1b58281404d47 (patch) | |
tree | 322b4b5a8e30f16c5c7693639f299bbbb1ca782b /hooks/post-receive | |
parent | aa1a39a927b2810c07d23920d5035c6143d8c9cc (diff) | |
download | gitlab-shell-zj-repo-disk-path-removal.tar.gz |
Internal allowed response disk path is ignoredzj-repo-disk-path-removal
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 |