Fix detection of git refs to be more strict
parent
d8fa746433
commit
79813b2f77
|
@ -81,7 +81,7 @@ abstract class VcsDriver implements VcsDriverInterface
|
|||
*/
|
||||
protected function shouldCache($identifier)
|
||||
{
|
||||
return $this->cache && preg_match('{[a-f0-9]{40}}i', $identifier);
|
||||
return $this->cache && preg_match('{^[a-f0-9]{40}$}iD', $identifier);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue