Add support for export-ok config option.
authorDan Brook <broq@cpan.org>
Sun, 20 Feb 2011 17:09:02 +0000 (17:09 +0000)
committerDan Brook <broq@cpan.org>
Sat, 26 Feb 2011 17:42:23 +0000 (17:42 +0000)
commit1d72763415136a65d6b965ab168403e99c1cf9c3
treed747548afe61edf994e16e53a8df2a29fbf01b5a
parent84f30d653a5b503c9e6e1d8784fb2d21db7736c4
Add support for export-ok config option.

This mimics the gitweb.cgi behaviour of specifying a file in
$export_ok to check for when listing available repos. So if export_ok
is specified in the Model::CollectionOfRepos section of the config
then only repos containing that filename will be visible.
gitalist_local.conf
lib/Gitalist/Git/CollectionOfRepositories.pm
lib/Gitalist/Model/CollectionOfRepos.pm
t/02git_CollectionOfRepositories_FromDirectory.t
t/lib/repositories/repo1/export-ok [new file with mode: 0644]