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; }