diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-06-07 19:57:29 +0300 |
---|---|---|
committer | Francisco Javier López <fjlopez@gitlab.com> | 2018-06-07 19:57:29 +0300 |
commit | 8d1ba9a849401f18c8742f8f70396b648722a3f7 (patch) | |
tree | f4e3cbf5d8b6d7b66d11b3894198348b8e34e7f5 | |
parent | 1c081781724f10868552b2d20ed801218cb702f3 (diff) |
Changing the monkey patch
-rw-r--r-- | ruby/lib/gitlab/git.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ruby/lib/gitlab/git.rb b/ruby/lib/gitlab/git.rb index 55a5cac08..62d02e12f 100644 --- a/ruby/lib/gitlab/git.rb +++ b/ruby/lib/gitlab/git.rb @@ -77,8 +77,10 @@ module Gitlab end end - def version - Gitlab::VersionInfo.parse(Gitlab::Git.popen(%W(#{Gitlab.config.git.bin_path} --version)).first) + class << self + def version + Gitlab::VersionInfo.parse(Gitlab::Git.popen(%W(#{Gitlab.config.git.bin_path} --version)).first) + end end end end |