public function execute($path = null, $_ = null)
 {
     $this->processBuilder->add('--');
     foreach (func_get_args() as $path) {
         $this->processBuilder->add($path);
     }
     return parent::run();
 }
 public function execute($pathspec = null, $_ = null)
 {
     $args = func_get_args();
     if (count($args)) {
         $this->processBuilder->add('--');
         foreach ($args as $pathspec) {
             $this->processBuilder->add($pathspec);
         }
     }
     return parent::run();
 }
 public function execute($repository = 'origin', $refspec = null, $_ = null)
 {
     $this->processBuilder->add($repository);
     $refspecs = func_get_args();
     array_shift($refspecs);
     foreach ($refspecs as $refspec) {
         $this->processBuilder->add($refspec);
     }
     return parent::run();
 }
 public function execute($arg = null, $_ = null)
 {
     foreach (func_get_args() as $arg) {
         $this->processBuilder->add($arg);
     }
     return parent::run();
 }
 public function execute($branchName = null)
 {
     if ($branchName) {
         $this->processBuilder->add($branchName);
     }
     return parent::run();
 }
 public function execute($pathspec = null, $_ = null)
 {
     // prevent launching the editor
     $this->processBuilder->add('--no-edit');
     if (!$this->gpgSignIsset && $this->repository->getConfig()->isSignCommitsEnabled()) {
         $this->gpgSign($this->repository->getConfig()->getSignCommitUser());
     }
     $args = func_get_args();
     if (count($args)) {
         $this->processBuilder->add('--');
         foreach ($args as $pathspec) {
             $this->processBuilder->add($pathspec);
         }
     }
     return parent::run();
 }
 public function execute($commit = 'HEAD')
 {
     $this->processBuilder->add($commit);
     return parent::run();
 }
 public function execute($object)
 {
     $this->processBuilder->add($object);
     return parent::run();
 }
 public function execute($tagName, $commit = null)
 {
     if (!$this->signIsset && $this->repository->getConfig()->isSignTagsEnabled()) {
         $this->sign()->localUser($this->repository->getConfig()->getSignCommitUser());
     } else {
         if ($this->signIsset && !$this->localUserIsset && $this->repository->getConfig()->isSignTagsEnabled()) {
             $this->localUser($this->repository->getConfig()->getSignCommitUser());
         }
     }
     $this->processBuilder->add($tagName);
     if ($commit) {
         $this->processBuilder->add($commit);
     }
     return parent::run();
 }
 public function execute($branchOrTreeIsh = null, $path = null, $_ = null)
 {
     if ($branchOrTreeIsh) {
         $this->processBuilder->add($branchOrTreeIsh);
     }
     $paths = func_get_args();
     array_shift($paths);
     if (count($paths)) {
         $this->processBuilder->add('--');
         foreach ($paths as $path) {
             $this->processBuilder->add($path);
         }
     }
     return parent::run();
 }
 public function execute($repositoryUrl)
 {
     $this->processBuilder->add($repositoryUrl);
     $this->processBuilder->add($this->repository->getRepositoryPath());
     return parent::run();
 }