Commit 635bb114 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Restrict env variables passed to git-xxx-pack

parent 79bceae6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment