diff options
author | Robert Speicher <robert@gitlab.com> | 2016-07-21 18:33:39 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-07-21 18:33:39 +0000 |
commit | 2e2af9ac3b79aff92afad0f3f8cee60646f1128b (patch) | |
tree | 6c8c328c91bb6fffe88967ed5f36d44dc852c898 /bin/gitlab-shell | |
parent | e8a4dc7018bba7f0321ce8d5d7758629c6503075 (diff) | |
parent | c1587190db9bb3bbc3bd87a6e95b430b51b55686 (diff) | |
download | gitlab-shell-2e2af9ac3b79aff92afad0f3f8cee60646f1128b.tar.gz |
Merge branch 'remove-env-set' into 'master'
Unset GL_ID and GL_PROTOCOL immediately
Neither other code executing in the hook process nor subprocesses of
the hook process need access to the GL_ID / GL_PROTOCOL variables so
we can just unset them the moment we fetch them.
See merge request !73
Diffstat (limited to 'bin/gitlab-shell')
-rwxr-xr-x | bin/gitlab-shell | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell index f145a1b..6ef572f 100755 --- a/bin/gitlab-shell +++ b/bin/gitlab-shell @@ -6,7 +6,7 @@ unless ENV['SSH_CONNECTION'] end key_id = /key-[0-9]+/.match(ARGV.join).to_s -original_cmd = ENV['SSH_ORIGINAL_COMMAND'] +original_cmd = ENV.delete('SSH_ORIGINAL_COMMAND') require_relative '../lib/gitlab_init' |