Created
February 8, 2014 08:45
-
-
Save chobie/8878699 to your computer and use it in GitHub Desktop.
This file contains 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/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