Use gitaly to figure out git version for usage ping
This commit is contained in:
parent
74cecce55a
commit
5607c57c41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue