git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb testing with non-apache web server

From
Martin Waitz <tali@admingilde.org>
Date
Aug 3, 2006, 20:14 UTC
Message-ID
<20060803201434.GB5476@admingilde.org>
In-Reply-To
<7virl9ppy7.fsf@assigned-by-dhcp.cox.net>
hoi :)
On Thu, Aug 03, 2006 at 12:41:20PM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> 	http://www.kernel.org/git/?p=gitk/gitk.git;a=summary
> 
> (that's two insertions of 'k').
> 
> Now with PATH_INFO, how exactly is this easier?
well, editing is not easier, but you can do other nice things.

On git.admingilde.org I have set up apache to serve the contents of my git repositories for all the well-known git repository URLs (*.git/objects/*, *.git/refs/*, ...) and to call gitweb for all other URLs. That way I get the exact same URLs for both gitweb and http:// clone (and even for git://, just change the protocol name).

I really think that it is very handy that you can give out a repository URL and any user can just click on it and get the summary page of this project.

I'm sure that it is possible to transfer the PATH_INFO into a p= parameter through URL rewrite rules, but it is much easier to set up if gitweb can directly grok appended paths.

I even changed the old gitweb to hand out links which used PATH_INFO rather than the p= parameter so that the URLs looked nicer. If there is interest in such a feature then I can do these changes again.

-- 
Martin Waitz
Previous: Junio C HamanoNext: Sam Vilain
Message 9 of 18 in “gitweb testing with non-apache web server”
  1. Marc SingerAug 3, 2006
  2. Jakub NarebskiAug 3, 2006
  3. Marc SingerAug 3, 2006
  4. Jakub NarebskiAug 3, 2006
  5. Marc SingerAug 3, 2006
  6. Junio C HamanoAug 3, 2006
  7. Jakub NarebskiAug 3, 2006
  8. Junio C HamanoAug 3, 2006
  9. Martin WaitzAug 3, 2006
  10. Sam VilainAug 3, 2006
  11. Blu CoraterAug 3, 2006
  12. Marc SingerAug 3, 2006
  13. Blu CoraterAug 3, 2006
  14. Marc SingerAug 3, 2006
  15. Francis DalyAug 3, 2006
  16. Marc SingerAug 4, 2006
  17. Francis DalyAug 4, 2006
  18. Marc SingerAug 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.