summaryrefslogtreecommitdiff
path: root/hooks/post-receive
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-17 12:31:44 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-18 14:14:31 +0200
commitbc5aea42748633013a3e50d699a1b58281404d47 (patch)
tree322b4b5a8e30f16c5c7693639f299bbbb1ca782b /hooks/post-receive
parentaa1a39a927b2810c07d23920d5035c6143d8c9cc (diff)
downloadgitlab-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-xhooks/post-receive5
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