Added || ($end == ':') to check if there was the : operator at the end. Works with gitolite served repositories. Should work with gitosis as well.
Added || ($end == ':') to check if there was the : operator at the end. Works with gitolite served repositories. Should work with gitosis as well.

Bug #77

Signed-off-by: Chris Han <xiphux@gmail.com>

--- a/include/Util.class.php
+++ b/include/Util.class.php
@@ -35,7 +35,7 @@
 
 		$end = substr($path, -1);
 
-		if (!(($end == '/') || ($backslash && (strtoupper(substr(PHP_OS, 0, 3))) && ($end == '\\'))))
+		if (!(( ($end == '/') || ($end == ':')) || ($backslash && (strtoupper(substr(PHP_OS, 0, 3))) && ($end == '\\'))))
 			$path .= '/';
 
 		return $path;

comments