Skip to content

Instantly share code, notes, and snippets.

@bradjones1
Last active February 25, 2019 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradjones1/10df177e5edb03004b8bf5bde077db77 to your computer and use it in GitHub Desktop.
Save bradjones1/10df177e5edb03004b8bf5bde077db77 to your computer and use it in GitHub Desktop.
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