Explorar o código

Fix git driver updating

Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
219c31ed0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/GitDriver.php

@@ -45,7 +45,7 @@ class GitDriver extends VcsDriver
 
             // update the repo if it is a valid git repository
             if (is_dir($this->repoDir) && 0 === $this->process->execute('git remote', $output, $this->repoDir)) {
-                $this->process->execute('git fetch --tags '.escapeshellarg($this->url), $output, $this->repoDir);
+                $this->process->execute('git remote update', $output, $this->repoDir);
             } else {
                 // clean up directory and do a fresh clone into it
                 $fs = new Filesystem();