14 Commits (e151a6c51c08e638d271c64b5384cbbd5ecc6333)

Author SHA1 Message Date
Arnout Boks e151a6c51c Only load configuration into IO if IO is available 6 years ago
Arnout Boks d1ce9f6246 Fix defaultRepos fallback does not use auth config
When a full 'composer' cannot be constructed (because there is no
local composer.json and no global composer.json), some commands
(e.g. `show -a`) fall back to the default repositories from the
`$COMPOSER_HOME/config.json` file. Without this fix, any auth
configuration from `$COMPOSER_HOME/auth.json` is not used for
these repositories in such a fallback scenario.

Steps to reproduce:

* Configure a password-protected composer repository in
  `$COMPOSER_HOME/config.json`.
* Configure valid credentials for that repository in
  `$COMPOSER_HOME/auth.json`.
* Make sure there is no file `$COMPOSER_HOME/composer.json`.
* Ensure the current working directory has no `composer.json`.
* Run `composer show -a some/package`.

Expected: Information about `some/package` is shown without
needing to enter credentials.

Actual: A prompt "Authentication required" is shown for the
private repository. When running the same command in a dir
that has a `composer.json`, or when `$COMPOSER_HOME/composer.json`
exists, things work as expected.
6 years ago
Jean Baptiste Noblot 621a9d845c Add 'git-bitbucket' in RepositoryFactory
Add 'git-bitbucket' and 'hg-bitbucket' in RepositoryFactory help to call good driver in vcs
Cause if you config your repository type with 'git'. the GitDriver is instantiate and not GitBitbucketDriver

Fix #5389
7 years ago
Martin Hasoň 3c5bfcf1e9 Register github repository type 7 years ago
Christophe Coevoet 978b87f7bd Fix the class name for fossil repositories 8 years ago
bohwaz abcbef4a67 Add Fossil support to Composer 8 years ago
Jordi Boggiano 5a3d60c0cf Output warning for invalid-looking packagist config, fixes #5404 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 9 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 9 years ago
Niels Keurentjes 818c3e707a Ton of phpDoc fixes. 9 years ago
Jordi Boggiano b2b4603215 Fix handling of http://foo/packages.json style repo URLs, fixes #5135 9 years ago
Jordi Boggiano 8cfbe7023d CS fixes 9 years ago
Jordi Boggiano bf1ddaa298 Fix method name for php5 9 years ago
Jordi Boggiano 1aec1c1fc8 Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200, closes #4207, closes #2604, fixes #2920 9 years ago