gitweb;隐藏特定的存储库
你好,我最近为我的东西设置了一个 git 服务器。它工作正常,
我已经安装了 gitweb,它也工作正常。
除了事实上我似乎无法控制显示哪些存储库;具体来说,我不想显示我的 gitosis-adimin.git 。
在 gitosis.conf 的这个目录内部,我已设置为以下内容 /home/git/repositories/gitosis-admin.git/gitosis.conf
[gitosis]
gitweb = yes
[repo gitosis-admin]
gitweb = no
[group gitosis-admin]
writable = gitosis-admin
members = 111111@devbox
我希望这会禁止 Web UI 显示此 .git
我的 gitweb.conf 如下 /etc/gitweb.conf
# path to git projects (<project>.git)
$projectroot = "/home/git/repositories";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "gitweb.css";
# javascript code for gitweb
$javascript = "gitweb.js";
我真的不知道如何禁止它显示此信息。
谢谢
Hi I have recently set up a git server for my stuff. and it is working ok,
I have installed gitweb which is also working fine.
Except for the fact I don't seem to have any control over which repo's are being shown; specifically I DO NOT want my gitosis-adimin.git to be shown.
Inside of this directory in the gitosis.conf i have set to the following
/home/git/repositories/gitosis-admin.git/gitosis.conf
[gitosis]
gitweb = yes
[repo gitosis-admin]
gitweb = no
[group gitosis-admin]
writable = gitosis-admin
members = 111111@devbox
I had hoped that this would disable the web UI from displaying this .git
my gitweb.conf is as follows
/etc/gitweb.conf
# path to git projects (<project>.git)
$projectroot = "/home/git/repositories";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "gitweb.css";
# javascript code for gitweb
$javascript = "gitweb.js";
I'm really not sure how to disable it from showing this information.
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将
$projects_list
设置为指向包含存储库和所有者列表的文件(请参阅 gitweb INSTALL 文件 了解更多信息,请注意,除非您设置$strict_export
,否则这些仍然可以访问),或者您可以设置$strict_export
并将$export_ok
设置为应该存在于存储库的.git
目录中的文件名(如果您希望可以访问它) 。You can either set
$projects_list
to point to a file containing a list of repositories and owners (see the gitweb INSTALL file for more information, note that unless you set$strict_export
, these are still accessible), or you can set$strict_export
and set$export_ok
to a file name that should exist in the repository's.git
directory if you want it to be accessible.