Custom post-receive hooks don't have access to GL_REPOSITORY environment variable
Custom post-receive hooks doesn't get access to the GL_REPOSITORY environment variable.
It gets deleted gl_repository = ENV.delete('GL_REPOSITORY')
(https://gitlab.com/gitlab-org/gitlab-shell/blob/master/hooks/post-receive#L8)
I'm not sure if there's a reason for doing this that I'm missing but if it's changed to gl_repository = ENV['GL_REPOSITORY']
it is available.