Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a canonical way to remove the ".git" suffix from listings of gitweb? This is the only thing bothering me when viewing the repositories...

I could probably change this in the source, but upon updates, the modification would be overwritten. So I am looking for a more persistent solution.

share|improve this question

I suspect that this is because your repositories are NOT bare repositories; that is, gitweb doesn't work correctly with non-bare repositories. A good way to check is--the directory that gitweb is publishing; does it contain a bunch of directories with a .git directory? The solution would be to use bare repositories (git clone --bare) instead.

share|improve this answer
up vote 0 down vote accepted

It was even easier than I suspected. The repository directory names were wrong. The script I used to create symbolical links automatically added a .git suffix for the directory that was not necessary. Fixing the script fixed my problem.

Sorry for the hassle.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.