Пример #1
0
 /**
  * Does a fetch using $refs if available.
  *
  * @return {Boolean} Did the fetch succeed?
  */
 public function fetch($refs = '')
 {
     if ($refs) {
         $refs = escapeshellarg($refs);
     }
     $cmd = trim("{$this->git} fetch {$this->origin} {$refs}");
     $this->shell->exec($cmd, $output, $exit_status);
     if ($exit_status !== 0) {
         throw new GitException('Error in fetch: ' . print_r($output, true));
     }
 }