mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Resolve further subtlety with untracked files.
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
parent
0ac9b6c27b
commit
0eecd3108f
1 changed files with 9 additions and 1 deletions
|
@ -71,13 +71,21 @@ EOTEXT
|
||||||
|
|
||||||
if ($this->getArgument('paths')) {
|
if ($this->getArgument('paths')) {
|
||||||
// TODO: deal with git stuff
|
// TODO: deal with git stuff
|
||||||
|
|
||||||
$paths = $this->getArgument('paths');
|
$paths = $this->getArgument('paths');
|
||||||
} else {
|
} else {
|
||||||
$paths = $repository_api->getWorkingCopyStatus();
|
$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);
|
$paths = array_keys($paths);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PhutilSymbolLoader::loadClass($engine_class);
|
PhutilSymbolLoader::loadClass($engine_class);
|
||||||
$engine = newv($engine_class, array());
|
$engine = newv($engine_class, array());
|
||||||
$engine->setWorkingCopy($working_copy);
|
$engine->setWorkingCopy($working_copy);
|
||||||
|
|
Loading…
Reference in a new issue