small fixes
[phpgitweb.git] / htdocs / pages / shortlog.class.php
index 38c8db5e1139a1ff365f3e3fb6f11fa761a19dad..0bd823f15b837c66b0eccce332c61beee344ed75 100644 (file)
@@ -45,6 +45,10 @@ class shortlog {
                        $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);