diff --git a/src/Gitonomy/Git/Parser/DiffParser.php b/src/Gitonomy/Git/Parser/DiffParser.php index c9f011b..c11d240 100644 --- a/src/Gitonomy/Git/Parser/DiffParser.php +++ b/src/Gitonomy/Git/Parser/DiffParser.php @@ -64,9 +64,9 @@ protected function doParse() // 4. File informations $isBinary = false; if ($this->expects('index ')) { - $oldIndex = $this->consumeHash(); + $oldIndex = $this->consumeShortHash(); $this->consume('..'); - $newIndex = $this->consumeHash(); + $newIndex = $this->consumeShortHash(); if ($this->expects(' ')) { $vars = $this->consumeRegexp('/\d{6}/'); $newMode = $oldMode = $vars[0];