summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-05-03 16:13:52 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-05-23 15:26:35 +0200
commit2a163a1754fd22573470e81ecd9727bbe96c43ba (patch)
tree64a86f52f28a875ec2a80e0f84a85a8ecbebe0fe /lib/gitlab_shell.rb
parent5fd923bd748cf789d687dd2e2eac9cb308a1febb (diff)
downloadgitlab-shell-2a163a1754fd22573470e81ecd9727bbe96c43ba.tar.gz
Explain chdir
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r--lib/gitlab_shell.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 33a5592..d905bd7 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -158,6 +158,7 @@ class GitlabShell
})
end
+ # We use 'chdir: ROOT_PATH' to let the next executable know where config.yml is.
Kernel::exec(env, *args, unsetenv_others: true, chdir: ROOT_PATH)
end