Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | private function installHookDirectory($path) { | ||||
Filesystem::createDirectory($path, 0755); | Filesystem::createDirectory($path, 0755); | ||||
Filesystem::writeFile($path.'/README', $readme); | Filesystem::writeFile($path.'/README', $readme); | ||||
} | } | ||||
private function getHookContextIdentifier(PhabricatorRepository $repository) { | private function getHookContextIdentifier(PhabricatorRepository $repository) { | ||||
$identifier = $repository->getPHID(); | $identifier = $repository->getPHID(); | ||||
$instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | ||||
if (strlen($instance)) { | if (phutil_nonempty_string($instance)) { | ||||
$identifier = "{$identifier}:{$instance}"; | $identifier = "{$identifier}:{$instance}"; | ||||
} | } | ||||
return $identifier; | return $identifier; | ||||
} | } | ||||
/* -( Pulling Git Working Copies )----------------------------------------- */ | /* -( Pulling Git Working Copies )----------------------------------------- */ | ||||
▲ Show 20 Lines • Show All 595 Lines • Show Last 20 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