Repository not found
The repository you were looking for was not found on this server. Please check the URL and look for errors. If there are no errors, then the repository does not exist. Please use the index to reach any repositories you wish to access.
".$repo."
\n";
echo "No commits yet";
require_once $_SERVER["DOCUMENT_ROOT"]."/foot.php";
die();
}
if ($branch === "") {
$SIDE_LINKS["git clone"] = "git://".$_SERVER["SERVER_NAME"]."/".$repo.".git";
require_once $_SERVER["DOCUMENT_ROOT"]."/head.php";
echo "".$repo."
\n";
$branches = shell_exec("git show-branch");
foreach (explode("\n",$branches) as $cbranch) {
echo preg_replace("/\[(.+)\] (.+)/","$1
",$cbranch);
}
} else {
$files = shell_exec("git ls-tree --full-name ".escapeshellarg($branch)." ".escapeshellarg($path));
if (substr($path,-1) !== "/" && $path !== "") {
if (explode(" ",explode("\n",$files)[0])[1] === "tree") {
header("Location: /".$repo."/tree/".$branch."/".$path."/");
die();
}
}
if (substr($path,-1) !== "/" && $path !== "") {
if (count(explode("\n",$files)) === 1) {
header("Location: /".$repo."/blob/".$branch."/".$path);
die();
}
}
if (substr($path,-1) === "/" && $path !== "") {
if (explode(" ",explode("\n",shell_exec("git ls-tree --full-name ".escapeshellarg($branch)." ".escapeshellarg(substr($path,0,-1))))[0])[1] === "blob") {
header("Location: /".$repo."/blob/".$branch."/".substr($path,0,-1));
die();
}
}
$SIDE_LINKS["git clone"] = "git://".$_SERVER["SERVER_NAME"]."/".$repo.".git";
if ($path == ".") {$SIDE_LINKS["Branches"] = "/".$repo."/tree/";}
$SIDE_LINKS["Show History"] = "/".$repo."/commits/".$branch."/".$path;
if ($path !== ".") {
$PAGE_TITLE = basename($path)."/ @ ".$PAGE_TITLE;
}
require_once $_SERVER["DOCUMENT_ROOT"]."/head.php"; ?>
= $repo ?>
%an %s %h (%ar)' -n 1 ".escapeshellarg($branch)." -- ".escapeshellarg($path));
echo "".$lastcommit."";
$folderstxt = "";
if ($path !== ".") {$folderstxt .= " ../
\n";}
$filestxt = "";
foreach (explode("\n",$files) as $file) {
$name = explode(" ",$file);
if ($name[1] == "tree") {
$folderstxt .= " ".end(explode("/",explode("\t",$name[2])[1]))."/
\n";
}
if ($name[1] == "blob") {
$filestxt .= " ".end(explode("/",explode("\t",$name[2])[1]))."
\n";
}
}
echo $folderstxt;
echo $filestxt;
if ($readmefile = shell_exec("git ls-tree --full-name ".escapeshellarg($branch)." ".escapeshellarg($path)."/README.")) {
$readme = shell_exec("git cat-file -p ".explode("\t",explode(" ",explode("\n",$readmefile)[0])[2])[0]." | md2html");
echo "\n ".$readme;
}
}
?>
About
".$desc."";
}
?>