diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-11 13:24:05 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-11 13:24:05 +0000 |
commit | 2ac57e18e56414eb9510439cbc33a52ca69c1045 (patch) | |
tree | 56218e57716b30a6382732cff39284382b4608e9 | |
parent | c02ec5b68778a46024b1dd4e28a1e482359d9a62 (diff) | |
parent | 635bb114d948af1cf5cf6e0483e6a25bccdf77f6 (diff) | |
download | gitlab-shell-2ac57e18e56414eb9510439cbc33a52ca69c1045.tar.gz |
Merge branch 'environment_variables' into 'master'
Restrict Environment Variables
-rw-r--r-- | lib/gitlab_shell.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 6dbd1ce..82c2ef9 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -59,8 +59,8 @@ class GitlabShell api.allowed?(@git_cmd, @repo_name, @key_id, '_any') end - def exec_cmd *args - Kernel::exec *args + def exec_cmd(*args) + Kernel::exec({'PATH' => ENV['PATH'], 'GL_ID' => ENV['GL_ID']}, *args, unset_env_others: true) end def api |