diff options
-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 |