mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Fix arc diff --no-ansi
Summary: Currently, we get an exception on empty %Ls for `arc diff --no-ansi` or similar (see P698). Test Plan: Ran `arc diff --no-ansi`. Reviewers: vrana, btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D4624
This commit is contained in:
parent
d3a6e456a6
commit
aec212069e
1 changed files with 12 additions and 4 deletions
|
@ -416,10 +416,18 @@ EOTEXT
|
|||
array_unshift($argv, '--ansi');
|
||||
}
|
||||
|
||||
$lint_unit = new ExecFuture(
|
||||
'php %s --recon diff --no-diff %Ls',
|
||||
phutil_get_library_root('arcanist').'/../scripts/arcanist.php',
|
||||
$argv);
|
||||
$script = phutil_get_library_root('arcanist').'/../scripts/arcanist.php';
|
||||
if ($argv) {
|
||||
$lint_unit = new ExecFuture(
|
||||
'php %s --recon diff --no-diff %Ls',
|
||||
$script,
|
||||
$argv);
|
||||
} else {
|
||||
$lint_unit = new ExecFuture(
|
||||
'php %s --recon diff --no-diff',
|
||||
$script);
|
||||
}
|
||||
|
||||
$lint_unit->write('', true);
|
||||
$lint_unit->start();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue