diff --git a/src/GitList/Application.php b/src/GitList/Application.php index ef43d79..dc0870a 100644 --- a/src/GitList/Application.php +++ b/src/GitList/Application.php @@ -41,7 +41,7 @@ class Application extends SilexApplication $repositories = $config->get('git', 'repositories'); $cached_repos = $config->get('app', 'cached_repos'); - if ( !isset( $cached_repos ) ) { + if ( false === $cached_repos || empty( $cached_repos) ) { $cached_repos = $root . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'repos.json'; } diff --git a/tests/InterfaceTest.php b/tests/InterfaceTest.php index a15296b..9df9d51 100644 --- a/tests/InterfaceTest.php +++ b/tests/InterfaceTest.php @@ -109,6 +109,8 @@ class InterfaceTest extends WebTestCase $repository->setConfig('user.email', 'luke@rebel.org'); $repository->addAll(); $repository->commit("Initial commit"); + + $git->deleteCached(); } public function createApplication()