Skip to content

Commit 96259e4

Browse files
Be compatible with bitbucket by allowing short hashes
1 parent ba09331 commit 96259e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Gitonomy/Git/Parser/DiffParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ protected function doParse()
6464
// 4. File informations
6565
$isBinary = false;
6666
if ($this->expects('index ')) {
67-
$oldIndex = $this->consumeHash();
67+
$oldIndex = $this->consumeShortHash();
6868
$this->consume('..');
69-
$newIndex = $this->consumeHash();
69+
$newIndex = $this->consumeShortHash();
7070
if ($this->expects(' ')) {
7171
$vars = $this->consumeRegexp('/\d{6}/');
7272
$newMode = $oldMode = $vars[0];

0 commit comments

Comments
 (0)