On Tue, 15 Aug 2006 21:36:43 +0200, "Jakub Narebski" wrote: > On 8/15/06, Martin Waitz <tali@xxxxxxxxxxxxxx> wrote: > > > > doesn't it make more sense to make it more easy to use the same URL for > > git:, http: and gitweb? > > It is not always possible to use the same URL for gitweb and http:// > access, for example gitweb might require /cgi-bin/ in path. git:// and > git+ssh:// access migh need different path than http:// access. > > With PATH_INFO for 'project' parameter actually used gitweb link would > be the same as http:// access link; And for someone who has enough control to make consistent URLs happen, could anyone provide guidance on how to make this work? Specifically, I'm interested in getting at the PATH_INFO for project functionality. Currently I've got gitweb running at the root URL on its own domain with the following apache configuration: ScriptAlias / /usr/lib/cgi-bin/gitweb So I can currently browse a project with something like: http://gitweb.freedesktop.org/?p=cairo.git But if I try to put the project name as part of the path: http://gitweb.freedesktop.org/cairo.git Then I just get a 404. So what do I need to configure to get the PATH_INFO stuff to work? Also, is there support in gitweb for not requiring the ".git" suffix even though that exists in the directory on the filesystem? The URL I really want to use is: http://gitweb.freedesktop.org/cairo Finally, once I get that working, I would like gitweb to generate URLs of this form in the link it generates. Does it have that capability yet? (It would also be nice if it didn't append options that are the default anyway, such as ";a=summary"). Thanks in advance, -Carl PS. Oh, and then the final thing I'd want is to allow someone to cut and paste a gitweb URL such as the above to "git clone" and then some magic would forward things such that the git daemon would serve the data. Has anyone got that working? And for bonus points, it would also fail over to http:// cloning if git:// cloning weren't possible for some reason.
Attachment:
pgpswgPVxpyLC.pgp
Description: PGP signature