1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Don't error on first run of arc diff

Summary:
When running arc diff in a repository that supports commit ranges, it is
possible that the setting for the default relative commit hasn't been set.
If this is the case, the user will be prompted. This change makes sure that
the prompt happens (and thus the setting is set) before we run the
background lint and unit runs.

Test Plan:
```
rm .git/arc/default-relative-commit
arc diff
```

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, aran

Maniphest Tasks: T2351

Differential Revision: https://secure.phabricator.com/D6854
This commit is contained in:
Nick Harper 2013-08-31 14:57:10 -07:00
parent 4a3d829223
commit db3581b8fa

View file

@ -433,6 +433,10 @@ EOTEXT
array_unshift($argv, '--ansi');
}
if ($this->getRepositoryAPI()->supportsCommitRanges()) {
$this->getRepositoryAPI()->getBaseCommit();
}
$script = phutil_get_library_root('arcanist').'/../scripts/arcanist.php';
if ($argv) {
$lint_unit = new ExecFuture(