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

Re: gitweb $export_ok question

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 1, 2009, 22:51 UTC
Message-ID
<200901012351.28864.jnareb@gmail.com>
In-Reply-To
<6db6bed70812311027g3be1cfbei35c014243237fd59@mail.gmail.com>

Two requests: could you please do not toppost, as it goes against natural flow of discussion and reading, but rather quote relevant parts and respond below? It would be good to not try to send HTML mail, as it is forbidden by VGER anti-SPAM filter, so you trying to send HTML-formatted email result in me getting two copies: one with and one without HTML version.

On Wed, 31 Dec 2008, Thomas Amsler wrote:
Show 10 quoted lines
> One more question. Now, on the gitweb home page, the project name hyper link
> shows up as:
> 
> authz.git/.git
> 
> where it used to be just:
> 
> authz.git/
> 
> is there a way to configure this so that it doesn't show the trailing .git?

I'm afraid it is not possible without modifying gitweb, unless you use symlinks in place of real repositories, i.e. if you have authz.git in $projectroot being symlink to authz.git/.git or even authz/.git (which might be somewhere else).

For example I have /home/local/scm/git.git be symlink to ~/git/.git

The longer explanation (which probably should made into gitweb/README or gitweb/INSTALL) is that gitweb is meant to deal with _bare_ repositories; gitweb doesn't touch and doesn't examine working area of "live" (non-bare) repository. If you host git repositories (like kernel.org, freedesktop.org or repo.or.cz) you usually host them bare (public repositories should be bare); but you might want to have gitweb for your own repository too.

-- 
Jakub Narebski
Poland
Previous: Thomas AmslerNext: Jakub Narebski
Message 6 of 7 in “gitweb $export_ok question”
  1. Thomas AmslerDec 29, 2008
  2. Jakub NarebskiDec 30, 2008
  3. Jakub NarebskiDec 30, 2008
  4. Jakub NarebskiDec 31, 2008
  5. Thomas AmslerDec 31, 2008
  6. Jakub NarebskiJan 1, 2009
  7. gitweb: Document that gitweb deals with bare repositoriesJakub Narebski, Jan 3, 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.