mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-02-16 11:37:29 +01:00
Litle tweaks for config.ini-example
- tweak for git.repositories config to don't care "with ending slash" cond. - tweak for app.baseurl config to don't care "without ending slash" cond.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
[git]
|
||||
client = '/usr/bin/git' ; Your git executable path
|
||||
repositories = '/var/www/projects/' ; Path to your repositories (with ending slash)
|
||||
repositories = '/var/www/projects/' ; Path to your repositories
|
||||
|
||||
; You can hide repositories from GitList, just copy this for each repository you want to hide
|
||||
; hidden[] = '/var/www/projects/BetaTest'
|
||||
; hidden[] = '/var/www/projects/BetaTest'
|
||||
|
||||
[app]
|
||||
baseurl = 'http://localhost/git' ; Base URL of the application (without ending slash)
|
||||
baseurl = 'http://localhost/git' ; Base URL of the application
|
||||
|
||||
; If you need to specify custom filetypes for certain extensions, do this here
|
||||
[filetypes]
|
||||
|
||||
@@ -14,9 +14,10 @@ if (empty($config['git']['repositories']) || !is_dir($config['git']['repositorie
|
||||
require_once 'phar://'.__DIR__.'/vendor/silex.phar';
|
||||
|
||||
$app = new Silex\Application();
|
||||
$app['baseurl'] = $config['app']['baseurl'];
|
||||
$app['baseurl'] = rtrim($config['app']['baseurl'], '/');
|
||||
$app['filetypes'] = $config['filetypes'];
|
||||
$app['hidden'] = isset($config['git']['hidden']) ? $config['git']['hidden'] : array();
|
||||
$config['git']['repositories'] = rtrim($config['git']['repositories'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||
|
||||
// Register Git and Twig libraries
|
||||
$app['autoloader']->registerNamespace('Git', __DIR__.'/lib');
|
||||
|
||||
Reference in New Issue
Block a user