Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-06-07 19:57:29 +0300
committerFrancisco Javier López <fjlopez@gitlab.com>2018-06-07 19:57:29 +0300
commit8d1ba9a849401f18c8742f8f70396b648722a3f7 (patch)
treef4e3cbf5d8b6d7b66d11b3894198348b8e34e7f5
parent1c081781724f10868552b2d20ed801218cb702f3 (diff)
Changing the monkey patch
-rw-r--r--ruby/lib/gitlab/git.rb6
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