列出 git-daemon 服务的所有存储库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1029514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:43:54  来源:igfitidea点击:

Listing all repositories served by git-daemon

git

提问by Robert Munteanu

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

假设我知道有一个git-daemon正在运行的 at git://git.mycompany.com,我如何列出该特定实例提供的所有存储库?



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

更新:我没有对 git.mycompany.com 的 shell 访问权限。

采纳答案by Shirkrin

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.

还有另一种方法,但它需要你们公司服务器管理员的一些帮助。Git 具有一个名为“GitWeb”的可浏览 Web 前端,可以将其配置为显示 git 服务的所有项目。

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

详细信息在GitWeb README 中有解释- 感兴趣的配置键称为“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.

GITWEB_PROJECTROOT gitweb 显示的所有项目的根目录。必须正确设置 gitweb 才能找到要显示的存储库。另请参阅 gitweb 的安装文件中的“Gitweb 存储库”。

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

也许你可以和你的管理员谈谈 - gitweb 可以为所有开发人员带来巨大的利润。

回答by baudtack

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-daemonwas invoked, or possibly check /etc/inetd.conf

据我所知,这需要在运行git-daemon. 您要么需要检查git-daemon被调用的参数,要么可能检查/etc/inetd.conf