Fix fatal error with long tags

See issue #696
This commit is contained in:
myfreescalewebpage
2016-10-29 13:15:07 +02:00
parent b507e27862
commit 639768c5ef

View File

@@ -39,10 +39,12 @@ class Routing
$slashPosition === 40)) {
// We may have a commit hash as our commitish.
$hash = substr($commitishPath, 0, 40);
if (preg_match('/[^a-zA-Z0-9]/i', $hash) === 0) {
if ($repository->hasCommit($hash)) {
$commitish = $hash;
}
}
}
if ($commitish === null) {
$branches = $repository->getBranches();