Skip to content
Snippets Groups Projects
Commit 9a0e7c0e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #4224 from hiroponz/fix-abort-gitlab-app-check

Fix abort gitlab:app:check
parents 1b4a9941 c18564d2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,7 @@ module Gitlab
attr_reader :major, :minor, :patch
 
def self.parse(str)
if m = str.match(/(\d+)\.(\d+)\.(\d+)/)
if str && m = str.match(/(\d+)\.(\d+)\.(\d+)/)
VersionInfo.new(m[1].to_i, m[2].to_i, m[3].to_i)
else
VersionInfo.new
Loading
Loading
Loading
Loading
@@ -661,7 +661,7 @@ namespace :gitlab do
current_version = Gitlab::VersionInfo.parse(gitlab_shell_version)
 
print "GitLab Shell version >= #{required_version} ? ... "
if required_version <= current_version
if current_version.valid? && required_version <= current_version
puts "OK (#{current_version})".green
else
puts "FAIL. Please update gitlab-shell to #{required_version} from #{current_version}".red
Loading
Loading
@@ -675,7 +675,7 @@ namespace :gitlab do
puts "Your git bin path is \"#{Gitlab.config.git.bin_path}\""
print "Git version >= #{required_version} ? ... "
 
if required_version <= current_version
if current_version.valid? && required_version <= current_version
puts "yes (#{current_version})".green
else
puts "no".red
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment