Windows support, fixes #26, #56 and #69

Implementing various workarounds and fixes to get GitList working fine
on Windows.
This commit is contained in:
Klaus Silveira
2012-08-17 01:59:55 -03:00
parent bf7441eea4
commit 23502ead8a
6 changed files with 20 additions and 17 deletions

View File

@@ -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);