Merge branch 'master' into milestone
[phorkie.git] / src / phorkie / Repository.php
index 4ac5ae71e7cd5c1930d003e8f75db525f160dd55..25b049cb1d91a4280ec1def1f770717907612ed6 100644 (file)
@@ -310,6 +310,13 @@ class Repository
             $commit->committerName  = $arOutput[$current + 2];
             $commit->committerEmail = $arOutput[$current + 3];
 
+            if (substr($arOutput[$current + 4], 0, 1) != ' ') {
+                //commit without changed lines
+                $arCommits[] = $commit;
+                $current += 4;
+                continue;
+            }
+
             $arLineParts = explode(' ', trim($arOutput[$current + 4]));
             $commit->filesChanged = $arLineParts[0];
             $commit->linesAdded   = $arLineParts[3];