Skip to content

Instantly share code, notes, and snippets.

@chobie
Created February 8, 2014 08:45
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 chobie/8878699 to your computer and use it in GitHub Desktop.
Save chobie/8878699 to your computer and use it in GitHub Desktop.
diff --git a/src/Composer/Config.php b/src/Composer/Config.php
index 087949e..ec6f3e1 100644
--- a/src/Composer/Config.php
+++ b/src/Composer/Config.php
@@ -58,6 +58,9 @@ class Config
// load defaults
$this->config = static::$defaultConfig;
$this->repositories = static::$defaultRepositories;
+ if (getenv("COMPOSER_REPOSITORY_URL")) {
+ $this->repositories['packagist']['url'] = getenv("COMPOSER_REPOSITORY_URL");
+ }
}
public function setConfigSource(ConfigSourceInterface $source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment