Пример #1
0
 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;
 }