Skip to content

Commit cb9e2d7

Browse files
committed
Add "refs/notes/gtm-data"
References for git time metrics (GTM) ``` [notes] rewriteref = refs/notes/gtm-data ``` results with Fatal error: ```Uncaught Gitonomy\Git\Exception\RuntimeException: Unable to parse "refs/notes/gtm-data" in /vendor/gitonomy/gitlib/src/Gitonomy/Git/ReferenceBag.php on line 371```
1 parent 9ff6537 commit cb9e2d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Gitonomy/Git/ReferenceBag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ protected function initialize()
367367
$this->references[$fullname] = $reference;
368368
} elseif (preg_match('#^refs/pull/(.*)$#', $fullname)) {
369369
// Do nothing here
370+
} elseif ($fullname === 'refs/notes/gtm-data') {
371+
// Do nothing here
370372
} else {
371373
throw new RuntimeException(sprintf('Unable to parse "%s"', $fullname));
372374
}

0 commit comments

Comments
 (0)