summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-22 12:54:27 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-07-05 18:03:29 -0500
commit6aa601866c66a62b4ab3db3fa55ab1b5e84e444d (patch)
tree68b55e83b11c5ee03b23b58a9c8ee9e8ee142181 /hooks
parent4cd4cf673844f8f381609f9c3264c33f2843935d (diff)
downloadgitlab-shell-6aa601866c66a62b4ab3db3fa55ab1b5e84e444d.tar.gz
Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no fallback value
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-receive b/hooks/pre-receive
index a7eeb30..a4b2e32 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -5,7 +5,7 @@
refs = $stdin.read
key_id = ENV['GL_ID']
-protocol = ENV['PROTOCOL'] || 'http'
+protocol = ENV['GL_PROTOCOL']
repo_path = Dir.pwd
require_relative '../lib/gitlab_custom_hook'