function gwvp_GitLogProvider()
{
- echo "<br>gitload provider loaded on homepage<br>";
+ /*
+ * The home page provider will:
+ * 1) show the last 10 commits for every repository - though, excluding private repos
+ * 2) if loged in, show the last commit on any repo's the user owns
+ *
+ * So i need a table thats going to list "writes" by user - as in POST writes but only
+ * put that info into the stats (doesnt exist) db if the repo is publically readable
+ *
+ * Or... should we instead just list every repo?
+ */
}
function gwvp_repoPermissionCheck($repo, $user)
$procenv["QUERY_STRING"] = "$qs";
$procenv["HTTP_USER_AGENT"] = "git/1.7.1";
$procenv["REMOTE_USER"] = "$username";
- $procenv["REMOTE_ADDR"] = "1.2.3.4";
+ $procenv["REMOTE_ADDR"] = $_SERVER["REMOTE_ADDR"];
$procenv["AUTH_TYPE"] = "Basic";
if(isset($_SERVER["CONTENT_TYPE"])) {