diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index de5e517d1..d3dd99e10 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/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();