1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-19 16:38:51 +02:00

fail arc diff if second lfs push errors

Summary:
We are having issues where people run out of file descriptors and the first `git push` will succeed, but the
second one will not. We'd like the diff to not be created in this case as it leads to weird behavior like our tests
running against 0 changed files.

Test Plan: none

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D21471
This commit is contained in:
Paul Tarjan 2020-09-23 13:23:40 -07:00
parent a716c4e55f
commit 7597f31b6a

View file

@ -2741,6 +2741,17 @@ EOTEXT
'git push -- %s %s',
$staging_uri,
$ref);
if ($err) {
$this->writeWarn(
pht('STAGING FAILED'),
pht('Unable to push lfs changes to the staging area.'));
throw new ArcanistUsageException(
pht(
'Failed to push lfs changes to staging area. Correct the issue, '.
'or use --skip-staging to skip this step.'));
}
}
return $refs;