]> khamidou — GitHub mirrors - arcanist.git/commit
Fix race condition inside `git diff-files`
authorepriestley <git@epriestley.com>
Wed, 18 Jun 2014 12:33:05 +0000 (05:33 -0700)
committerepriestley <git@epriestley.com>
Wed, 18 Jun 2014 12:33:05 +0000 (05:33 -0700)
commitdd1f93d77b5fc19381c78f6d968fd974d22095a8
tree1f6d5ede6815b8cd7c1b09b7dbc54a7b5a388fa7
parent9257f1bc85850d2c381cbb9e18536f09a5271a21
Fix race condition inside `git diff-files`

Summary:
There's some sort of race inside `git` here, where the `git diff-files` command exits with different results some of the time when run in parallel with `git ls-files` or `git diff` (running either command was sufficient to trigger the race).

Run it separately to avoid the race.

I poked around the `git` source a little bit but quickly lost interest given that the issue seems fixed and this workaround is essentially reasonable.

Test Plan: Ran test 20x in a row without failures.

Reviewers: hach-que

Reviewed By: hach-que

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9616
src/repository/api/ArcanistGitAPI.php