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:
parent
80f479d948
commit
c2d2f6ded1
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue