提交 06805fff 编写于 作者: S Sato Hiroyuki

Config setting should be used in git version check.

上级 bbd12591
......@@ -668,8 +668,9 @@ namespace :gitlab do
def check_git_version
required_version = Gitlab::VersionInfo.new(1, 7, 10)
current_version = Gitlab::VersionInfo.parse(run("git --version"))
current_version = Gitlab::VersionInfo.parse(run("#{Gitlab.config.git.bin_path} --version"))
puts "Your git bin path is \"#{Gitlab.config.git.bin_path}\""
print "Git version >= #{required_version} ? ... "
if required_version <= current_version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册