Commit 3d67018c authored by Douwe Maan's avatar Douwe Maan

Merge branch 'sh-memoize-gitlab-shell' into 'master'

Memoize GitlabShellAdapter for performance and ease of testing

See merge request gitlab-org/gitlab-ce!15507
parents 5ce2f847 f80654c4
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
module Gitlab module Gitlab
module ShellAdapter module ShellAdapter
def gitlab_shell def gitlab_shell
Gitlab::Shell.new @gitlab_shell ||= Gitlab::Shell.new
end end
end 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