Page MenuHomePhabricator

D9616.id23066.diff
No OneTemporary

D9616.id23066.diff

diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php
--- a/src/repository/api/ArcanistGitAPI.php
+++ b/src/repository/api/ArcanistGitAPI.php
@@ -600,11 +600,17 @@
$futures = array(
$uncommitted_future,
$untracked_future,
- $unstaged_future,
+ // NOTE: `git diff-files` races with each of these other commands
+ // internally, and resolves with inconsistent results if executed
+ // in parallel. To work around this, DO NOT run it at the same time.
+ // After the other commands exit, we can start the `diff-files` command.
);
Futures($futures)->resolveAll();
+ // We're clear to start the `git diff-files` now.
+ $unstaged_future->start();
+
$result = new PhutilArrayWithDefaultValue();
list($stdout) = $uncommitted_future->resolvex();

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 23, 10:36 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723251
Default Alt Text
D9616.id23066.diff (851 B)

Event Timeline