Changeset View
Changeset View
Standalone View
Standalone View
src/repository/remote/ArcanistGitRepositoryRemoteQuery.php
Show All 37 Lines | foreach ($lines as $line) { | ||||
$map[$name][$mode] = $uri; | $map[$name][$mode] = $uri; | ||||
} | } | ||||
$refs = array(); | $refs = array(); | ||||
foreach ($map as $name => $uris) { | foreach ($map as $name => $uris) { | ||||
$fetch_uri = idx($uris, 'fetch'); | $fetch_uri = idx($uris, 'fetch'); | ||||
$push_uri = idx($uris, 'push'); | $push_uri = idx($uris, 'push'); | ||||
$ref = id(new ArcanistRemoteRef()) | $ref = (new ArcanistRemoteRef()) | ||||
->setRemoteName($name); | ->setRemoteName($name); | ||||
if ($fetch_uri !== null) { | if ($fetch_uri !== null) { | ||||
$ref->setFetchURI($fetch_uri); | $ref->setFetchURI($fetch_uri); | ||||
} | } | ||||
if ($push_uri !== null) { | if ($push_uri !== null) { | ||||
$ref->setPushURI($push_uri); | $ref->setPushURI($push_uri); | ||||
Show All 9 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0