Fixup
parent
53680afb85
commit
d132b9e6fd
|
@ -238,14 +238,14 @@ EOT
|
|||
}
|
||||
|
||||
$gitVersion = Git::getVersion($this->process);
|
||||
if (version_compare('2.24.0', $gitVersion, '>')) {
|
||||
return '<warning>Your git version ('.$gitVersion.') is too old and possibly will cause issues. Please upgrade to git 2.24 or above</>';
|
||||
}
|
||||
|
||||
if (null === $gitVersion) {
|
||||
return '<comment>No git process found</>';
|
||||
}
|
||||
|
||||
if (version_compare('2.24.0', $gitVersion, '>')) {
|
||||
return '<warning>Your git version ('.$gitVersion.') is too old and possibly will cause issues. Please upgrade to git 2.24 or above</>';
|
||||
}
|
||||
|
||||
return '<info>OK</> <comment>git version '.$gitVersion.'</>';
|
||||
}
|
||||
|
||||
|
|
|
@ -29,8 +29,7 @@ class DiagnoseCommandTest extends TestCase
|
|||
$this->assertStringContainsString('Checking composer.json: <warning>WARNING</warning>
|
||||
<warning>No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.</warning>', $output);
|
||||
|
||||
$this->assertStringContainsString('Checking git settings: OK
|
||||
Checking http connectivity to packagist: OK
|
||||
$this->assertStringContainsString('Checking http connectivity to packagist: OK
|
||||
Checking https connectivity to packagist: OK
|
||||
Checking github.com rate limit: ', $output);
|
||||
}
|
||||
|
@ -47,8 +46,7 @@ Checking github.com rate limit: ', $output);
|
|||
$output = $appTester->getDisplay(true);
|
||||
$this->assertStringContainsString('Checking composer.json: OK', $output);
|
||||
|
||||
$this->assertStringContainsString('Checking git settings: OK
|
||||
Checking http connectivity to packagist: OK
|
||||
$this->assertStringContainsString('Checking http connectivity to packagist: OK
|
||||
Checking https connectivity to packagist: OK
|
||||
Checking github.com rate limit: ', $output);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue