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

Re: Removing the trailing "/.git" from gitweb display?

From
JJ.H. <warthog19@eaglescrag.net>
Date
May 15, 2009, 21:14 UTC
Message-ID
<4A0DDB4E.8090905@eaglescrag.net>
In-Reply-To
<ed82fe3e0905151349k15f040aej30dbec82037e9d76@mail.gmail.com>
Your actually barking up two separate trees / issues here.
Timur Tabi wrote:
Show 5 quoted lines
> I noticed that most gitweb pages show their repositories like this:
> 
> bluetooth/bluez-gnome.git 	Bluetooth applications for ... 	Marcel Holtmann
> bluetooth/bluez-hcidump.git 	Bluetooth packet analyzer 	Marcel Holtmann
> bluetooth/bluez.git 	Bluetooth protocol stack for ... 	Marcel Holtmann

I'm going to assume you pulled this off of kernel.org, but the basic reason here is that we use the <project>.git moniker as a standard to designate that the underlying directory is a bare git repo. That's really it there. We do have a script that wanders our directory structure and looks or directories based on the <project>.git so that's a bit required from our perspective.

Show 6 quoted lines
> 
> However, mine looks like this:
> 
> alsa.1862/.git	8610 audio: fabric driver uses wrong DMA channels for... 	Timur
> alsa.2598/.git	8610 audio: migrate ASoC V2 drivers to mainline	Timur
> alsa.3313/.git	Introduce spin_event_timeout()	Timur

If your doing that, then your putting a full git tree into gitweb as opposed to a bare repo. I would suggest only putting a bare repo.

Show 24 quoted lines
> 
> Notice how my repositories have a trailing "/.git" to them?  How do I
> get rid of that?
> 
> My gitweb.conf is:
> 
> $projectroot = '/home/b04825/git/';
> $site_name = "Timur Tabi's git repositories";
> $home_link = $my_uri;
> @stylesheets = ("gitweb.css");
> $favicon = "git-favicon.png";
> $logo = "git-logo.png";
> $projects_list = '/home/b04825/git/projects_list';
> $projects_list_description_width = 50;
> 
> And /home/b04825/git/projects_list looks like:
> 
> alsa.1862/.git Timur
> alsa.2598/.git Timur
> alsa.3313/.git Timur
> 
> I presume the reason why gitweb shows the trailing "/.git" is because
> that's what my projects_list file contains.  However, if I remove the
> "/.git" from projects_list, gitweb can't find any repositories.
Previous: Timur TabiNext: Jakub Narebski
Message 2 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.