threads / discuss / 21150

gitweb calls the project ".git"

Subject: gitweb calls the project ".git"

## tl;dr

2 messages between Oct 7, 2009 and Oct 7, 2009.

replies: 1people: 2as markdown or json

Lars Rasmusson· Oct 7, 2009, 16:31 UTC · lore
Hi, I am serving a repository with "git instaweb".

In the web browser, the name in the Project column is only ".git", and not the "myrepo.git" which I would like to have, and as it is on http://repo.or.cz/ (which is a site that also uses gitweb).

How do I configure it to serve the project directory (or even better, all the repos in a directory), and name them appropriately?

(Is it possible to do with instaweb, or can it only be done with a more heavy approach like using apache?)

Thanks for any quick ideas, cheers, /Lars

Daniele Segato· Oct 7, 2009, 20:01 UTC · re: Lars Rasmusson · lore

Re: gitweb calls the project ".git"

Il giorno mer, 07/10/2009 alle 18.31 +0200, Lars Rasmusson ha scritto:
Show 12 quoted lines
> Hi, I am serving a repository with "git instaweb".
> 
> In the web browser, the name in the Project column is only ".git", and  
> not the "myrepo.git"
> which I would like to have, and as it is on http://repo.or.cz/ (which  
> is a site that also uses gitweb).
> 
> How do I configure it to serve the project directory (or even better,  
> all the repos in a directory), and name them appropriately?
> 
> (Is it possible to do with instaweb, or can it only be done with a  
> more heavy approach like using apache?)

as for I know by default you should create a simbolic link to your .git directory in /var/cache/git/

the name of the project depends of the name of the symbolic link
example: /var/cache/git/yourproject.git --> /your/project/path/.git/

Bye, Daniele

← back to recent threads