Use gitaly to figure out git version for usage ping

This commit is contained in:
Balasankar "Balu" C 2018-06-19 18:39:47 +05:30
parent 74cecce55a
commit 5607c57c41
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module Gitlab
extend Gitlab::Git::Popen
def self.git_version
Gitlab::VersionInfo.parse(popen(%W(#{Gitlab.config.git.bin_path} --version), nil).first)
Gitlab::VersionInfo.parse(Gitaly::Server.all.first.git_binary_version)
end
end
end