summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen <benmaggacis+gitlab@gmail.com>2018-02-24 01:08:40 +0000
committerBen <benmaggacis+gitlab@gmail.com>2018-02-24 01:08:40 +0000
commit8c49d4a6b3b053c647c1d42332439673189a4fb1 (patch)
treed96146b2c4278638f1d0ac11231982cf939ba27e
parentbcc59f6a6a3a2a028f0ec87803ea61101b55262e (diff)
downloadgitlab-shell-8c49d4a6b3b053c647c1d42332439673189a4fb1.tar.gz
Don't delete GL_REPOSITORY
-rwxr-xr-xhooks/post-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index a668207..30f4be1 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -5,7 +5,7 @@
refs = $stdin.read
key_id = ENV.delete('GL_ID')
-gl_repository = ENV.delete('GL_REPOSITORY')
+gl_repository = ENV['GL_REPOSITORY']
repo_path = Dir.pwd
require_relative '../lib/gitlab_custom_hook'