added dev flag to keep git repos, enabling local development work on framework

This commit is contained in:
David Alexander 2016-03-21 18:36:15 -06:00
parent 42f8caea66
commit 6719c38d7a
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ class RefreshMarkdownTask extends BuildTask
*/
private function cleanRepository(array $repository)
{
// if the dev=1 flag is used when invoking RefreshMarkdownTask the git repos are kept, enabling local development of framework.
if( isset($_REQUEST['dev']) && $_REQUEST['dev'] ) return;
$paths = array_merge(glob("*"), glob(".*"));
foreach ($paths as $path) {