diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-11-21 09:17:31 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-11-21 09:17:31 +0000 |
commit | 3d67018c16756d548b0a891bb118d2ef215355cb (patch) | |
tree | 2df5760ecb92857aac1d4c9df1fa3d35841bde6d | |
parent | 5ce2f847b182d4e96efdd85bea7f1aae22c44865 (diff) | |
parent | f80654c4e13ff42ca03bacb59b924b9960f59148 (diff) | |
download | gitlab-ce-3d67018c16756d548b0a891bb118d2ef215355cb.tar.gz |
Merge branch 'sh-memoize-gitlab-shell' into 'master'
Memoize GitlabShellAdapter for performance and ease of testing
See merge request gitlab-org/gitlab-ce!15507
-rw-r--r-- | lib/gitlab/shell_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/shell_adapter.rb b/lib/gitlab/shell_adapter.rb index fbe2a7a0d72..053dd4ab9e0 100644 --- a/lib/gitlab/shell_adapter.rb +++ b/lib/gitlab/shell_adapter.rb @@ -5,7 +5,7 @@ module Gitlab module ShellAdapter def gitlab_shell - Gitlab::Shell.new + @gitlab_shell ||= Gitlab::Shell.new end end end |