Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

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

Your Answer

 
discard

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.