Merge branch '48105-git-version-detection-using-gitaly' into 'master'

Move git version detection to gitaly for usage ping data

Closes #48105 and charts/gitlab#530

See merge request gitlab-org/gitlab-ce!19993
This commit is contained in:
Sean McGivern 2018-06-20 09:00:32 +00:00
commit b60415c2b7

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