Whitespace was preventing ref lookup
Whitespace was preventing ref lookup

--- a/include/gitutil.git_read_head.php
+++ b/include/gitutil.git_read_head.php
@@ -13,7 +13,7 @@
 function git_read_head($proj)
 {
 	$cmd = GIT_REV_PARSE . " --verify HEAD";
-	return git_exec($proj, $cmd);
+	return trim(git_exec($proj, $cmd));
 }
 
 ?>

comments