Commit 99f07fd2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'git_annex_env_variable'

parents 3c97aea3 919e70c8
......@@ -119,7 +119,17 @@ class GitlabShell
# This method is not covered by Rspec because it ends the current Ruby process.
def exec_cmd(*args)
Kernel::exec({ 'PATH' => ENV['PATH'], 'LD_LIBRARY_PATH' => ENV['LD_LIBRARY_PATH'], 'GL_ID' => @key_id }, *args, unsetenv_others: true)
env = {
'PATH' => ENV['PATH'],
'LD_LIBRARY_PATH' => ENV['LD_LIBRARY_PATH'],
'GL_ID' => @key_id
}
if @config.git_annex_enabled?
env.merge!({ 'GIT_ANNEX_SHELL_LIMITED' => '1' })
end
Kernel::exec(env, *args, unsetenv_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