diff --git a/src/Console/Processes/Git.php b/src/Console/Processes/Git.php index f758a25eb1..7d36b2cbe3 100644 --- a/src/Console/Processes/Git.php +++ b/src/Console/Processes/Git.php @@ -88,6 +88,7 @@ protected function prepareErrorOutput($type, $buffer) $ignore = [ 'remote: Resolving deltas', 'Permanently added the ECDSA host key for IP address', + 'remote: Processed', ]; if (Str::contains($buffer, $ignore)) { diff --git a/tests/Git/GitProcessTest.php b/tests/Git/GitProcessTest.php index 98e13b8acb..d63c29dc7f 100644 --- a/tests/Git/GitProcessTest.php +++ b/tests/Git/GitProcessTest.php @@ -155,6 +155,14 @@ public function it_doesnt_log_added_host_key_to_known_hosts_as_error_output() $this->simulateLoggableErrorOutput("Permanently added the ECDSA host key for IP address '127.0.0.1' to the list of known hosts."); } + /** @test */ + public function it_doesnt_log_processed_references_as_error_output() + { + Log::shouldReceive('error')->never(); + + $this->simulateLoggableErrorOutput('remote: Processed 1 references in total'); + } + private function showLastCommit($path) { return Process::create($path)->run('git show');