コード例 #1
0
ファイル: GitTransporter.php プロジェクト: webcreate/conveyor
 protected function checkout()
 {
     if (false === is_dir($this->cwd)) {
         $this->git->checkout($this->cwd);
     } else {
         $this->git->setCwd($this->cwd);
         $this->git->pull();
     }
     $this->hasCheckout = true;
 }
コード例 #2
0
ファイル: GitDriver.php プロジェクト: webcreate/conveyor
 protected function getClient($url)
 {
     $client = new Git($url);
     $client->getAdapter()->setExecutable('git');
     if (null !== $this->dispatcher) {
         $client->setDispatcher($this->dispatcher);
     }
     $client->setCwd($this->cacheDir . '/git/' . md5($url));
     return $client;
 }