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

Re: [PATCH] gitweb: Document that gitweb deals with bare repositories

From
Jakub Narebski <jnareb@gmail.com>
Date
May 15, 2009, 21:36 UTC
Message-ID
<200905152336.49319.jnareb@gmail.com>
In-Reply-To
<4A0DDD94.1010901@freescale.com>
On Fri, 15 May 2009, Timur Tabi wrote:
Show 7 quoted lines
> Jakub Narebski wrote:
> 
> > Does this explanation help?
> 
> Yes, it does, but I wish it weren't true.  I don't see why gitweb
> can't be enhanced to support non-bare repositories without using
> symlinks or other hackery.  

Actually the patch I have sent is not formulated as well as I wish. That is why I didn't send it earlier (and I probably should have marked it as RFC; still it is better than now).

Gitweb can deal with non-bare repositories. It is only that because gitweb is not interested in working area, it shows $GIT_DIR (path to repository itself) as name/path to repository. Therefore repo/.git for non-bare repositories, because it is repository itself that matters.

Show 6 quoted lines
> 
> To avoid the overhead of gitweb scanning all of my repositories for
> other respitories, I use a packages_list, which is automatically
> recreated whenever I add a new repo.  However, I think having to
> create a shadow bare repository with a cron job to keep it
> more-or-less update is wrong.    
If you use gitweb only for yourself, take a look at git-instaweb

If you provide access for others, i.e. if those repositories shown in gitweb are public repositories, it is much better to use bare repositories for that.

-- 
Jakub Narebski
Poland
Previous: Timur TabiNext: Timur Tabi
Message 5 of 8 in “Removing the trailing "/.git" from gitweb display?”
  1. Timur TabiMay 15, 2009
  2. J.H.May 15, 2009
  3. gitweb: Document that gitweb deals with bare repositoriesJakub Narebski, May 15, 2009
  4. Timur TabiMay 15, 2009
  5. Jakub NarebskiMay 15, 2009
  6. Timur TabiMay 15, 2009
  7. Junio C HamanoMay 16, 2009
  8. Jakub NarebskiMay 16, 2009

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.