mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Merge pull request #697 from myfreescalewebpage/master
Fix fatal error with long tags
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user