$this->graph_data = new graph_data_generator();
if($head == null) {
//add all refs to the graph
+ $rhash = GitCommand::get_hash($project['path'], "HEAD");
+ if($rhash)
+ $this->graph_data->add_branch($rhash, null);
+
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);