From: epriestley Date: Sat, 19 Feb 2011 01:08:10 +0000 (-0800) Subject: Resolve further subtlety with untracked files. X-Git-Tag: conduit-4~396 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0eecd3108fd668d6f5b7786f9d47ae7599233269;p=arcanist.git Resolve further subtlety with untracked files. Summary: Test Plan: Reviewers: CC: --- diff --git a/src/workflow/unit/ArcanistUnitWorkflow.php b/src/workflow/unit/ArcanistUnitWorkflow.php index 46d632ed..71488138 100644 --- a/src/workflow/unit/ArcanistUnitWorkflow.php +++ b/src/workflow/unit/ArcanistUnitWorkflow.php @@ -71,13 +71,21 @@ EOTEXT if ($this->getArgument('paths')) { // TODO: deal with git stuff - $paths = $this->getArgument('paths'); } else { $paths = $repository_api->getWorkingCopyStatus(); + + // TODO: clean this up + foreach ($paths as $path => $mask) { + if ($mask & ArcanistRepositoryAPI::FLAG_UNTRACKED) { + unset($paths[$path]); + } + } + $paths = array_keys($paths); } + PhutilSymbolLoader::loadClass($engine_class); $engine = newv($engine_class, array()); $engine->setWorkingCopy($working_copy);