From 73230a4543fce57986b38dde3ec17088ea56d09e Mon Sep 17 00:00:00 2001 From: Yves Hoppe Date: Mon, 2 Nov 2015 12:11:36 +0100 Subject: [PATCH] Fixed caching issue with folder not deleted before new clone --- RoboFile.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RoboFile.php b/RoboFile.php index 015e64b..a210ffb 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -274,6 +274,11 @@ class RoboFile extends \Robo\Tasks // Caching cloned installations locally if (!is_dir('tests/cache') || (time() - filemtime('tests/cache') > 60 * 60 * 24)) { + if (file_exists('tests/cache')) + { + $this->taskDeleteDir('tests/cache')->run(); + } + $this->_exec($this->buildGitCloneCommand()); }