You are not logged in.

#1 2008-12-20 17:37:01

cu3edweb
Member
From: USA
Registered: 2007-10-07
Posts: 291

Git Project name (gitweb) ?

I set up a git server for myself. I am still pretty new to git. Anyway I was wondering if there is a config setting I can set in each project so when I browse git web I see

Project Name

instead of

project/.git

Thanks

Offline

#2 2008-12-21 02:05:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Git Project name (gitweb) ?

There is a file named description in your git root.

Offline

#3 2008-12-21 15:39:39

cu3edweb
Member
From: USA
Registered: 2007-10-07
Posts: 291

Re: Git Project name (gitweb) ?

Yeah I have the description set fine. I am trying to edit the column before that. The project name. If you do that in the description file then I am not sure of the syntax because whatever I put in description shows up under description and doesn't change the project name.

Offline

#4 2008-12-21 15:44:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Git Project name (gitweb) ?

Oh...  Just rename the folder the git repo is in.

Offline

#5 2010-04-13 12:07:48

zbot1
Member
Registered: 2010-04-13
Posts: 1

Re: Git Project name (gitweb) ?

old post... but no one should waste 1/2 hour of their lives trying to figure this out:

I have soft links in the main repo directory (e.g., /home/myusername/git/repo) pointing to my project folders.  That way on my /etc/gitweb.conf I can point $projectroot to:

$projectroot = "/home/myusername/git/repo/";

So, before I had a softlink pointing to the base of the project directory.  I created this by:

cd ~/git/repo
ln -s /home/code/myproject myproject

But then gitweb would display (a bit annoyingly) the project name as: myproject/.git

A simple solution... Which took me half hour to realize:

cd ~/git/repo
ln -s /home/code/myproject/.git myproject

That way, gitweb displays the project name: myproject/

Offline

#6 2010-06-28 19:04:25

dcc24
Member
Registered: 2009-10-31
Posts: 737

Re: Git Project name (gitweb) ?

Allan wrote:

Oh...  Just rename the folder the git repo is in.

Sorry for necrobumping, but aside from zbot's solution how does "renaming the folder" work?

If you mean "mv .git myproject", that destroys the git repo. So, what do you actually mean by "rename the folder the repo is in"?


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

Board footer

Powered by FluxBB