diff --git a/src/GitRepository.php b/src/GitRepository.php index 07a31dc..7ff27bf 100644 --- a/src/GitRepository.php +++ b/src/GitRepository.php @@ -581,7 +581,7 @@ protected function run($cmd/*, $options = NULL*/) if($ret !== 0) { - throw new GitException("Command '$cmd' failed."); + throw new GitException("Command '$cmd' failed (exit-code $ret).", $ret); } return $this;