开发者

gitweb; hide specific repos

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 /ho开发者_如何学Cme/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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜