foreach($this->project['refs'] as $ref => $rhash) {
if(preg_match('#^refs/heads/#i', $ref) && preg_match('/^[a-f0-9]*$/i', $rhash)) {
$this->graph_data->add_branch($rhash, $ref);
foreach($this->project['refs'] as $ref => $rhash) {
if(preg_match('#^refs/heads/#i', $ref) && preg_match('/^[a-f0-9]*$/i', $rhash)) {
$this->graph_data->add_branch($rhash, $ref);