Robert Munteanu
Robert Munteanu

Reputation: 68268

Listing all repositories served by git-daemon

Assuming that I know there is a git-daemon running at git://git.mycompany.com, how can I list all repositories served by that specific instance?


Update: I don't have shell access to git.mycompany.com.

Upvotes: 13

Views: 17160

Answers (2)

Heals
Heals

Reputation: 4078

There is one other way but it needs some assistance of you companies server admins. Git features a browsable web frontend called 'GitWeb' which can be configured to show all projects served by git.

Details are explained in the GitWeb README - the config key of interest is called "GITWEB_PROJECTROOT":

GITWEB_PROJECTROOT The root directory for all projects shown by gitweb. Must be set correctly for gitweb to find repositories to display. See also "Gitweb repositories" in the INSTALL file for gitweb.

Maybe you could have a talk with you admins - gitweb can be a great profit for all developers.

Upvotes: 2

baudtack
baudtack

Reputation: 30341

As far as I can tell, this needs to be done on the machine that is running git-daemon. You either need to check the arguments where git-daemon was invoked, or possibly check /etc/inetd.conf

Upvotes: 1

Related Questions