Browse Source

Update src/Composer/Repository/Vcs/GitLabDriver.php

Co-Authored-By: Jordi Boggiano <j.boggiano@seld.be>
Stephan 5 years ago
parent
commit
402c64c271
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Composer/Repository/Vcs/GitLabDriver.php

+ 1 - 2
src/Composer/Repository/Vcs/GitLabDriver.php

@@ -445,9 +445,8 @@ class GitLabDriver extends VcsDriver
 
                     if (!$moreThanGuestAccess) {
                         $this->io->writeError('<warning>GitLab token with Guest only access detected</warning>');
-                        $this->setupGitDriver($this->generateSshUrl());
 
-                        return $res;
+                        return $this->attemptCloneFallback(); 
                     }
                 }