fixed coding fail from last commit
[gitweb.git] / git_bugtrack.php
CommitLineData
8a1b4b56
S
1<p><?php
2if($_GET["p"]){
3 $hash = shell_exec("git --git-dir=/home/git/".$_GET["p"]." rev-list -n 1 --pretty='format:%h' --header master | grep '^[0-9a-f]*$'");
4 if(!$hash){
5 echo "<b>unknown project or no bugtracker for this project</b>";
6 }else{
7 echo "<b>under construction</b>";
8 }
9}else{
10 echo "<b>unknown project or no bugtracker for this project</b";
11}
12?></p>