From 115d37a6dad85c5d57117542a50f0f987ae36523 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 21 Nov 2024 02:43:33 +0100 Subject: [PATCH] dont throw when no error is cast --- lib/GitRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GitRepo.php b/lib/GitRepo.php index a4623b0..2fba933 100644 --- a/lib/GitRepo.php +++ b/lib/GitRepo.php @@ -199,7 +199,7 @@ class GitRepo { } $status = trim(proc_close($resource)); - if ($status) throw new \Exception($stderr); + if ($status && $stderr) throw new \Exception($stderr); return $stdout; }