public function main($phpgitweb, $project) {
$this->phpgitweb = $phpgitweb;
public function main($phpgitweb, $project) {
$this->phpgitweb = $phpgitweb;
$project['refs'] = $phpgitweb->get_project_loader()->getProjectRefs($project);
$phpgitweb->append_header_nav("commit", null, true);
$phpgitweb->append_title("commit");
$project['refs'] = $phpgitweb->get_project_loader()->getProjectRefs($project);
$phpgitweb->append_header_nav("commit", null, true);
$phpgitweb->append_title("commit");
-
- if(array_key_exists('h', $_GET))
- $commitid = $_GET['h'];
- else
- $commitid = "HEAD";
-
- $commit = $commit_loader->load($commitid);
+ $commit = $commit_loader->load();