mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 10:52:14 +02:00
wip
This commit is contained in:
@ -657,8 +657,7 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
||||
$changedFiles = new ChangedFiles($projectRoot);
|
||||
$branchSha = $graph->recordedAtSha($this->branch);
|
||||
|
||||
if ($changedFiles->gitAvailable()
|
||||
&& $branchSha !== null
|
||||
if ($branchSha !== null
|
||||
&& $changedFiles->since($branchSha) === null) {
|
||||
$this->renderBadge('WARN', 'Recorded commit is no longer reachable — graph will be rebuilt.');
|
||||
$graph = null;
|
||||
@ -812,12 +811,6 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
||||
{
|
||||
$changedFiles = new ChangedFiles($projectRoot);
|
||||
|
||||
if (! $changedFiles->gitAvailable()) {
|
||||
$this->renderBadge('WARN', 'Git unavailable — running full suite.');
|
||||
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
$branchSha = $graph->recordedAtSha($this->branch);
|
||||
$changed = $changedFiles->since($branchSha) ?? [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user