Last active
February 25, 2019 05:16
-
-
Save bradjones1/10df177e5edb03004b8bf5bde077db77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Composer/Repository/Vcs/GitLabDriver.php b/src/Composer/Repository/Vcs/GitLabDriver.php | |
index 2044ff70..2d6329c5 100644 | |
--- a/src/Composer/Repository/Vcs/GitLabDriver.php | |
+++ b/src/Composer/Repository/Vcs/GitLabDriver.php | |
@@ -203,11 +203,11 @@ public function getDist($identifier) | |
*/ | |
public function getSource($identifier) | |
{ | |
- if ($this->gitDriver) { | |
- return $this->gitDriver->getSource($identifier); | |
- } | |
- | |
- return array('type' => 'git', 'url' => $this->getRepositoryUrl(), 'reference' => $identifier); | |
+ return array( | |
+ 'type' => 'git', | |
+ 'url' => $this->project['http_url_to_repo'], | |
+ 'reference' => $identifier, | |
+ ); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment