From: paulr Date: Sun, 30 Oct 2011 03:37:46 +0000 (+1100) Subject: its all about the time X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=34740c9fa804277f1f51c1fb3c0f2c9645f3840f;p=gwvp.git its all about the time --- diff --git a/README b/README new file mode 100644 index 0000000..ddc2292 --- /dev/null +++ b/README @@ -0,0 +1,40 @@ +GWVP +==== + +Git over Web Via PHP is a project to do something i've wanted to have a long time - a web based git remote +with administration and all git related activities happening over http/https. Git has this now, its called +git-http-backend and its quite broken. If you read its man page it'll tell you this: + + To enable anonymous read access but authenticated write access, + require authorization with a LocationMatch directive: + + + AuthType Basic + AuthName "Git Access" + Require group committers + ... + + +This will never work in a month of sundays, but yet its been in the man page and been un-fixed now for a year +and besides that i've decided i want a web based one. Im sick of git over ssh with ssh keys, its annoying +when it can be done with user/password auth over https. + +Thats what the project is designed to do - give people the ability to administrate a set of a git repo's via +a web interface and have the same web interface for pull and push. + +What you will ultimately be able to do is: +1) get list of git repos (with an interface like gitweb) +2) create users and assign permissions into repo's +3) create repos +4) import repos + +but most importantly: +git add remote origin https://username@server/git/myrepo.git +git push + +How it Works +============ +Initially this thing will have a fairly boring interface for creating/contorlling users and repos while +also pushing directly back to git-http-backend AND providing the authentication interface IT needs to function + +Gitweb.cgi may also be incorporated as the git view tool - but thats less important at this point \ No newline at end of file diff --git a/gwvplib/gwvpweb.php b/gwvplib/gwvpweb.php new file mode 100644 index 0000000..8148e00 --- /dev/null +++ b/gwvplib/gwvpweb.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/www/index.php b/www/index.php index 4f83001..fb71493 100644 --- a/www/index.php +++ b/www/index.php @@ -3,7 +3,26 @@ // initial http file require_once("config.php"); +/* first determine the url, it will be something that does either or the following: + * + * + * 1. admin functions (create/delete repo) + * 2. user functions (patch pushes, pull requests) + * 3. gitweb functions (to display git web output) + * 4. git-http-backend functions (to interact with command line functions) + * 5. do we auth? + */ + +goWeb(); + +echo "
";
+echo "BASEURL: $BASE_URL\n";
+echo "CUSTOM\n";
+print_r($_SERVER);
+print_r($_REQUEST);
+
+
+echo "
"; -echo "Hello moto"; ?>