diff --git a/src/applications/repository/storage/repository/PhabricatorRepository.php b/src/applications/repository/storage/repository/PhabricatorRepository.php index 66e2baa8cf..6c1fdb843a 100644 --- a/src/applications/repository/storage/repository/PhabricatorRepository.php +++ b/src/applications/repository/storage/repository/PhabricatorRepository.php @@ -33,6 +33,7 @@ class PhabricatorRepository extends PhabricatorRepositoryDAO { protected $details = array(); private $sshKeyfile; + private $actualLocalPath; public function getConfiguration() { return array( @@ -117,7 +118,15 @@ class PhabricatorRepository extends PhabricatorRepositoryDAO { } public function getLocalPath() { - return $this->getDetail('local-path'); + if (!$this->actualLocalPath) { + $this->actualLocalPath = $this->getDetail('local-path'); + } + return $this->actualLocalPath; + } + + // Lets you move the local-path for this instance + public function setLocalPath($path) { + $this->actualLocalPath = $path; } public function execRemoteCommand($pattern /*, $arg, ... */) {