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

Memoize GitlabShellAdapter for performance and ease of testing

See merge request gitlab-org/gitlab-ce!15507
This commit is contained in:
Douwe Maan 2017-11-21 09:17:31 +00:00
commit 3d67018c16

View file

@ -5,7 +5,7 @@
module Gitlab
module ShellAdapter
def gitlab_shell
Gitlab::Shell.new
@gitlab_shell ||= Gitlab::Shell.new
end
end
end