BarryServer : Git

All the code for all my projects
// BarryServer : Git / barryserver-git / commit / acd7cb2eb50767cd855dccceb68da92a7fa8ee10

// Related

barryserver-git

Barry Display README from currently directory acd7cb2 (1 year, 10 months ago)
diff --git a/tree.php b/tree.php
index 79e154b..979b1d0 100644
--- a/tree.php
+++ b/tree.php
@@ -81,7 +81,7 @@
 		}
 		echo $folderstxt;
 		echo $filestxt;
-		if ($readmefile = shell_exec("git ls-tree --full-name ".escapeshellarg($branch)." ".escapeshellarg($rest)."README.")) {
+		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		</main><main>".$readme;
 		}