mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Check git version in gitlab:check
This commit is contained in:
@@ -24,6 +24,7 @@ namespace :gitlab do
|
||||
check_init_script_up_to_date
|
||||
check_satellites_exist
|
||||
check_redis_version
|
||||
check_git_version
|
||||
|
||||
finished_checking "GitLab"
|
||||
end
|
||||
@@ -663,4 +664,18 @@ namespace :gitlab do
|
||||
puts "FAIL. Please update gitlab-shell to v#{required_version}".red
|
||||
end
|
||||
end
|
||||
|
||||
def check_git_version
|
||||
print "Git version >= 1.7.10 ? ... "
|
||||
|
||||
if run_and_match("git --version", /git version 1.7.10.\d/)
|
||||
puts "yes".green
|
||||
else
|
||||
puts "no".red
|
||||
try_fixing_it(
|
||||
"Update your git to a version >= 1.7.10"
|
||||
)
|
||||
fix_and_rerun
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user