80 Commits (002fd39bc6fc28dc79d9e20bf705e53e1f75caab)

Author SHA1 Message Date
Jordi Boggiano f70d527f4f
Fix git tests 4 years ago
Jordi Boggiano 04381c70fe
Merge branch '1.10' 4 years ago
Jordi Boggiano 93d4cf6f91
Add --no-show-signature where git supports it, fixes #8966 4 years ago
Jordi Boggiano 3134466b42
Merge branch '1.10' 4 years ago
Jordi Boggiano 4ce492d01d
Fix detection of gitlab URLs, fixes #8402, closes #8868 4 years ago
Jordi Boggiano aa6be02c64
Allow COMPOSER_DISABLE_NETWORK to work with GitHubDriver by doing a cache priming pass first 4 years ago
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 4 years ago
Jordi Boggiano bc002ae1fb
Merge branch 'master' into 2.0 4 years ago
Stephan Vock 243ee9b1e4 Git: log error for sync mirror with existing local copy 4 years ago
Jordi Boggiano 1e68555e0a
Sanitize URLs in getRepoName and centralize the Url sanitization process 4 years ago
Jordi Boggiano 88b051c96b
Merge branch 'master' into 2.0
Update deps
5 years ago
Stephan Vock b847115617 Git: fix authentication handling for private GitHub repositories 5 years ago
Jordi Boggiano f867c407c7
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 149250ab92
Remove credentials from git remotes in cache and vendor dirs
This only removes the credentials if they are managed by composer auth.json or equivalent, if the credentials were present in the package URL to begin with they might remain

Refs #8293
Fixes #3644
Closes #3608
5 years ago
Jordi Boggiano 4e43f849c7
Avoid overwriting credentials with existing ones from git repos, refs #8293 5 years ago
Jordi Boggiano 12184aa9c5
Fix github auth to try https with pwd also, fixes #8356 5 years ago
Jordi Boggiano b925d06861
Fix gitlab support for basic-auth fallback from ssh URLs 5 years ago
Jordi Boggiano ae9cc3db58
Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351 5 years ago
Jordi Boggiano bc2a1d762a
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano f0d565bb6d
Avoid transforming the origins when prompting for auth, fixes #8300 5 years ago
Jordi Boggiano 53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903 5 years ago
Andrew Gillis dec2b5cd50 add gitlab token auth for git clone 5 years ago
Jordi Boggiano 1983a450b4 Use rawurldecode instead of urldecode, fixes #7407 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
zefrog fd00ea7ce8 Fix Git detection of authentication failure when no tty is attached to the process 6 years ago
Jordi Boggiano 50665aa18d Simplify check for current revision, refs #6684 7 years ago
Robert Lu e768e297cd fetch tag,commit form local but not ref 7 years ago
Robert Lu 0ad985122d Don't fetch when ref already on local 7 years ago
Jordi Boggiano 72616a9635 Only check for safe mode on versions that have it, refs #6300 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Stefan Grootscholten 4377ba2bcb Implement changes after review by stof.
- Use camelCase variable names.
- Set 3rd argument of http_build_query
- Remove obsolete checks
8 years ago
Stefan Grootscholten a4af559ca8 Store access-token for re-use
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
8 years ago
Plamen Garkov ab4322148f adding "fatal: unable to access" to authFalures 8 years ago
Rob Bast 02455712cf check for additional possible output strings, fixes #5543 8 years ago
Jordi Boggiano 4998ee27b3 Re-use mirror code from the git driver, refs #5384 8 years ago
Jordi Boggiano 55e90093a4 Merge remote-tracking branch 'marvil07/faster-git-clones-using-cache' 8 years ago
Marco Villegas 75b88a13fe Use regex to capture git version. 8 years ago
Stefan Grootscholten ea11a95359 Provide fallback when using basic authentication.
When composer is configured to use bitbucket basic authentication (a bitbucket username and password), you get an error
when trying to install dependencies.
This commit prevent the install process to be aborted due to uncaught exceptions.
8 years ago
Marco Villegas 5bb0433a51 Provide a way to retirve git version from the related util class. 8 years ago
Jordi Boggiano 9cb6c2322a Fix more git URL escaping 8 years ago
Jordi Boggiano e3ae45fa12 Replace username as well if it looks like a github oauth token 8 years ago
Stefan Grootscholten 9b654048ed Fix regex for bitbucket https URLs.
If the bitbucket URL has the .git extension, the compiling of the authUrl and sshUrl result in invalid URLs.
8 years ago
Stefan Grootscholten 591f68288b Provide a fallback to ssh for https bitbucket URLs.
When running in non-interactive mode, there is no way to ask for credentials.
If there are no credentials available, no attempt is made to execute the command.

This commit provides a fallback to SSH for non authenticated, non-interactive install/updates of bitbucket https URLs.
8 years ago
Jordi Boggiano 2062070be9 Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Jordi Boggiano 2c9326bacb Merge remote-tracking branch 'wenkepaul/master' 8 years ago
Niels Keurentjes 49524bc4ba Centralize secure-http checking 8 years ago
Paul Wenke 9059d70ba0 Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable. 8 years ago
Paul.Wenke 9ddf8c4d55 Fixed OAuth credentials issue for subsequent clone requests. 8 years ago