mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-08-07 16:51:03 +02:00
Implementing various workarounds and fixes to get GitList working fine on Windows.
This commit is contained in:
4
boot.php
4
boot.php
@@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
define('WINDOWS_BUILD', 1);
|
||||
}
|
||||
|
||||
// Load configuration
|
||||
$config = new GitList\Config('config.ini');
|
||||
$config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
|
||||
|
||||
Reference in New Issue
Block a user