mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Fix a possible fatal on the first push to a cluster repository
Summary: Fixes T11020. I think this resolves things -- `$new_version` (set above) should be used, not `$new_log` directly. Specifically, we would get into trouble if the initial push failed for some reason (working copy not initialized yet, commit hook rejected, etc). Test Plan: Made a bad push to a new repository. Saw it freeze before the patch and succeed afterwards. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11020 Differential Revision: https://secure.phabricator.com/D15969
This commit is contained in:
parent
725d60eb4a
commit
bb16a1b0e2
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ final class DiffusionRepositoryClusterEngine extends Phobject {
|
||||||
$repository_phid,
|
$repository_phid,
|
||||||
$device_phid,
|
$device_phid,
|
||||||
$this->clusterWriteVersion,
|
$this->clusterWriteVersion,
|
||||||
$new_log->getID(),
|
$new_version,
|
||||||
$this->clusterWriteOwner);
|
$this->clusterWriteOwner);
|
||||||
$did_release = true;
|
$did_release = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue