1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +01:00

do not re-use output when an exception occurs

Summary:
$stdout from the previous run would be reused if an exception
occurred

Test Plan: that's a negative, ghostrider.

Reviewers: epriestley, jungejason

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D2008
This commit is contained in:
Bill Fumerola 2012-03-23 16:28:42 -07:00 committed by epriestley
parent d28eb759d6
commit bee69f9ce2

View file

@ -99,6 +99,7 @@ final class DiffusionSvnDiffQuery extends DiffusionDiffQuery {
$futures = array_filter($futures); $futures = array_filter($futures);
foreach (Futures($futures) as $key => $future) { foreach (Futures($futures) as $key => $future) {
$stdout = '';
try { try {
list($stdout) = $future->resolvex(); list($stdout) = $future->resolvex();
} catch (CommandException $e) { } catch (CommandException $e) {