1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +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;
}
}