diff --git a/boot.php b/boot.php index cc88f69..3a5b62b 100644 --- a/boot.php +++ b/boot.php @@ -1,9 +1,5 @@ set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR); diff --git a/src/GitList/Component/Git/Repository.php b/src/GitList/Component/Git/Repository.php index 1d27985..214bf43 100644 --- a/src/GitList/Component/Git/Repository.php +++ b/src/GitList/Component/Git/Repository.php @@ -227,7 +227,7 @@ class Repository */ public function getTotalCommits($file = null) { - if (WINDOWS_BUILD) { + if (defined('PHP_WINDOWS_VERSION_BUILD')) { $command = "rev-list --count --all $file"; } else { $command = "rev-list --all $file | wc -l";