Sfoglia il codice sorgente

Fix git driver updating

Jordi Boggiano 13 anni fa
parent
commit
219c31ed0c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();