Commit f80654c4 authored by Stan Hu's avatar Stan Hu

Memoize GitlabShellAdapter for performance and ease of testing

Port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3463#note_47990536
parent 9a8f094e
......@@ -5,7 +5,7 @@
module Gitlab
module ShellAdapter
def gitlab_shell
Gitlab::Shell.new
@gitlab_shell ||= Gitlab::Shell.new
end
end
end
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