summaryrefslogtreecommitdiff
path: root/lib/gitlab/git
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-20 20:40:56 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-07-05 16:54:22 -0500
commit7735ef86f0714a5b2a4cb4db8ec0471654563885 (patch)
tree5f56b0348da8870736339150b669069f84e43fd1 /lib/gitlab/git
parentea9d910c8bd2774cf48a5b6092704143a7505011 (diff)
downloadgitlab-ce-7735ef86f0714a5b2a4cb4db8ec0471654563885.tar.gz
Only allow Git Access on the allowed protocol
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/hook.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/git/hook.rb b/lib/gitlab/git/hook.rb
index 420c6883c45..0b61c8bf332 100644
--- a/lib/gitlab/git/hook.rb
+++ b/lib/gitlab/git/hook.rb
@@ -34,7 +34,8 @@ module Gitlab
vars = {
'GL_ID' => gl_id,
- 'PWD' => repo_path
+ 'PWD' => repo_path,
+ 'PROTOCOL' => 'web'
}
options = {