1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

bugfix: mercurial commit worker had an array error

It tried to get $path['targetPath'] istead of $change['targetPath']
when $path was a string
This commit is contained in:
Sigurd Holsen 2012-05-21 11:41:34 +02:00 committed by epriestley
parent 80f479d948
commit c2d2f6ded1

View file

@ -103,8 +103,9 @@ final class PhabricatorRepositoryMercurialCommitChangeParserWorker
$away = array();
foreach ($changes as $path => $change) {
if ($path['targetPath']) {
$away[$path['targetPath']][] = $path;
$target_path = $change['targetPath'];
if ($target_path) {
$away[$target_path][] = $path;
}
}