Jordi Boggiano 13 жил өмнө
parent
commit
219c31ed0c

+ 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();