We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b4b06 commit 179a831Copy full SHA for 179a831
src/Gitonomy/Git/Repository.php
@@ -306,7 +306,7 @@ public function getSize()
306
throw new \RuntimeException(sprintf('Unable to compute size: ', $process->getErrorOutput()));
307
}
308
309
- if (!preg_match('/(\d+)\s+total$/', $process->getOutput(), $vars)) {
+ if (!preg_match('/(\d+)\s+total$/', trim($process->getOutput()), $vars)) {
310
throw new \RuntimeException('Unable to parse repository size output');
311
312
0 commit comments