Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/editor/PhabricatorRepositoryEditor.php
Show First 20 Lines • Show All 678 Lines • ▼ Show 20 Lines | if (!strlen($local_path)) { | ||||
$id = $object->getID(); | $id = $object->getID(); | ||||
$local_path = "{$local_root}/{$id}/"; | $local_path = "{$local_root}/{$id}/"; | ||||
$object->setDetail('local-path', $local_path); | $object->setDetail('local-path', $local_path); | ||||
$object->save(); | $object->save(); | ||||
} | } | ||||
if ($this->getIsNewObject()) { | if ($this->getIsNewObject()) { | ||||
$object->synchronizeWorkingCopyAfterCreation(); | id(new DiffusionRepositoryClusterEngine()) | ||||
->setViewer($this->getActor()) | |||||
->setRepository($object) | |||||
->synchronizeWorkingCopyAfterCreation(); | |||||
} | } | ||||
return $xactions; | return $xactions; | ||||
} | } | ||||
} | } |