790 Commits (737a613a50c7dd8eebcf7a1bc8ed7e0d7b46afdd)

Author SHA1 Message Date
Jordi Boggiano 14d6bcedda Fix redirect handling and some output tweaks 6 years ago
Jordi Boggiano fc03ab9bba Add COMPOSER_DISABLE_NETWORK env var for debugging 6 years ago
Jordi Boggiano 788a822b24 Add some phpdocs 6 years ago
Jordi Boggiano 5d2b3276eb Avoid starting all jobs immediately 6 years ago
Jordi Boggiano 64384f8b15 Fix tests 6 years ago
Jordi Boggiano 9986b797fb Add support for redirects/retries in curl downloader 6 years ago
Jordi Boggiano fd11cf3618 Port/extract most behavior of RemoteFilesystem to CurlDownloader 6 years ago
Jordi Boggiano 09fd239f24 Fix factory test 6 years ago
Jordi Boggiano 1cd9f4f9db Disable request_fulluri by default for HTTPS connections 6 years ago
Jordi Boggiano f946d8eb5a More RemoteFilesystem usage removals and some repository/vcs driver refactorings 6 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago
Jordi Boggiano 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Michele Locati 04098153c8 Add support for running composer with phpdbg (#7798) 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Jordi Boggiano 5a56bb6971 Remove BC event and constraint classes 6 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
6 years ago
Jordi Boggiano 2528654c53 Merge branch '1.7' 6 years ago
Seven Du 148e503b31 Modified comment block (#7700)
* Modified comment block
6 years ago
Michele Locati 41458c7518 Don't call Symfony ProcessUtils::escapeArgument 6 years ago
François-Xavier de Guillebon 114217c6e3
Fix ini_get() for boolean values 6 years ago
Gabriel Caruso 2805a69e58 Simplify conditions and inline temp variables 6 years ago
Gabriel Caruso a64b652a6b Use func_num_args instead of counting on func_get_args 6 years ago
Stephan Vock 8b8df01336 Bitbucket: fix redirect behaviour 6 years ago
Gabriel Caruso 71c8735e11 Use combined assignment operators 6 years ago
Jordi Boggiano bf125295df Fix escaping of URLs in Perforce and Subversion drivers 6 years ago
Daniel Karl 849f4eda56 Using cwd for 2nd process-execution (auth) in HgUtils 6 years ago
Jordi Boggiano e718f34ba4 Properly detect rate limit errors on github before outputting messages, fixes #6621 6 years ago
Jordi Boggiano e7a9bd3362 Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530 6 years ago
Nicolas Grekas a3bbcf9c77 Make RemoteFilesystem::getRemoteContents() report response headers also on exceptions 6 years ago
Markus Staab eb94f8346a
Fixed typo 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano c5fa3bdde0 Migrate to repo.packagist.org for package metadata 6 years ago
Jordi Boggiano 1983a450b4 Use rawurldecode instead of urldecode, fixes #7407 6 years ago
Jordi Boggiano d64f95b70c
Merge pull request #7475 from Elendev/mercurial-auth-json
Add support for authentication with mercurial repositories.
6 years ago
Elendev ea5644281a Display the error output in the thrown exception 6 years ago
Elendev 5c2b34a1af Encode the username correctly (fix typo) 6 years ago
Jonas Renaudot 1a725d5e1f Add support for authentication with mercurial repositories. 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
zefrog fd00ea7ce8 Fix Git detection of authentication failure when no tty is attached to the process 6 years ago
Jordi Boggiano 4ebb747e12 Merge branch '1.6' 6 years ago
Jordi Boggiano e697293cd9 Handle broken symlinks more cleanly, fixes #7255 6 years ago
Jordi Boggiano 38866ba310 Merge remote-tracking branch 'johnstevenson/external-xdebug' 7 years ago
Jordi Boggiano 2bd34c0534 Merge branch '1.6' 7 years ago
Fabio Bas c9aa9c0d2f Fix usage of svn user-provided credentials, fixes #7114, closes #7228 7 years ago
Jordi Boggiano 174c71de04 Handle http 401/403 differently to allow reading warning message 7 years ago
Markus Staab 71d058b97b refactored "svn --version" calls into a single place, closes #7152
this saves a lot of process-spawning as we re-use the result of a process started once.
7 years ago
Jordi Boggiano e76d32817e
Merge pull request #7070 from nicolas-grekas/fix
Fix RemoteFilesystem::getRemoteContents() on-failure behavior
7 years ago
johnstevenson ed97c2116c Use external XdebugHandler library 7 years ago
Jordi Boggiano 08f769220a Merge branch '1.6' 7 years ago
Jordi Boggiano f857da7c29 Remove deprecated license check from ValidatingArrayLoader, fixes #7026, fixes #7073 7 years ago
Nicolas Grekas 3b391191b9 Fix RemoteFilesystem::getRemoteContents() on-failure behavior 7 years ago
Jordi Boggiano 5f97eb1578 Merge branch '1.6' 7 years ago
Markus Staab 9bc83d698e Pass auth credentials to svn log while retrieving commit logs 7 years ago
Jordi Boggiano 2224989430
Merge pull request #7036 from kalessil/master
[minor] SCA: reduced repetitive method calls
7 years ago
Jordi Boggiano dae3c5bc2d Merge branch '1.6' 7 years ago
Vladimir Reznichenko da9e00066c SCA: reduced repetitive methods references, used specialized PhpUnit assertions 7 years ago
Narration SD fd61a21bff Fix detection of junction points, fixes #7025 7 years ago
Martin Hujer bbee0d7c6c Validation warns if script description for nonexistent script is present
Fixes #7010
7 years ago
Jordi Boggiano 59fcb91912
Merge pull request #6985 from nicolas-grekas/get-url-contents
Add RemoteFilesystem::getRemoteContents() extension point
7 years ago
Tomas Klinkenberg 60106edd32 Added a test to confirm issue #6994.
Added a encapsulated group to the replacement parameter of the `preg_replace` for GitLab in `\Composer\Util\Url::updateDistReference()`. This fixes #6994.
7 years ago
Nicolas Grekas 5601f07bfa Add RemoteFilesystem::getRemoteContents() extension point 7 years ago
Jordi Boggiano e6114b2ca7 Fix support for replacing dist refs in gitlab URLs and add support for gitlab/github enterprise too 7 years ago
Jordi Boggiano 5cd0fef7ff Upgrade to SPDX License 3.0 and handle deprecations more gracefully, fixes #6951 7 years ago
Jordi Boggiano 50665aa18d Simplify check for current revision, refs #6684 7 years ago
Jordi Boggiano 93cd9d874b Merge remote-tracking branch 'RobberPhex/git-repo' 7 years ago
Gabriel Caruso 50045a7536 Add no_useless_else in phpcs 7 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Gabriel Caruso 32a409a3ee Clean elses 7 years ago
Jordi Boggiano eab826b00b Merge branch '1.5' 7 years ago
Jordi Boggiano b52fd60873 Always follow redirects in userland as we need to check if we have authentication every time for the new domain 7 years ago
Jordi Boggiano b59dd23bb4 Merge branch '1.5' 7 years ago
Jordi Boggiano 743153e862 Tweak so that we allow authentication for domains we redirect to, refs #6717 7 years ago
Maarten Balliauw 128e424c90 Avoid sending Authorization header to another domain on redirect, fixes #6716 7 years ago
Jordi Boggiano 5130d02208 Update to latest ca-bundle 7 years ago
Jordi Boggiano 9850621c6b
Merge pull request #6788 from GawainLynch/symfony-4
Symfony 4
7 years ago
Jordi Boggiano 0b3bc4ccb9 Merge branch '1.5' 7 years ago
johnstevenson b0922b95af Report multiple inis in php.ini specific messages
Where systems use multiple ini files it is perhaps more useful to
suggest running `php --ini` to see their locations, rather than showing
the loaded php.ini (if one exists).
7 years ago
Jordi Boggiano 3c76e36e2c Fix regex, refs #6735 7 years ago
gregory 8a136d18e5 Correctly extract username/password from URL 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
Gawain Lynch 8b42aed060
Create a local escapeArgument() for Symfony 4 compatibility. 7 years ago
Jordi Boggiano bfed974ae9 Merge branch '1.5' 7 years ago
Jordi Boggiano fc9f8c2007 Fix tests 7 years ago
Jordi Boggiano 26a50b3762 Merge branch '1.5' 7 years ago
Jordi Boggiano 11f1e03739 CS tweaks 7 years ago
Minh-Quan TRAN 007ca5ff6a workaround for gitlab installation with relative url
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
7 years ago
croensch bd6168ef85 fix pull 6740
wrongly copied the check, either must be in not-empty
7 years ago
croensch 6da92e98ac also support NO_PROXY
since WINDOWS can only have one case and that is usually upperase
7 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano a53f2ce7c7 Merge branch '1.5' 7 years ago
Jordi Boggiano f71baa5e0c Try fixing 404s gitlab handling when unauthenticated, refs #6669 7 years ago
Christian Ramelow 39d8104897 Introduces a new method `copy()`.
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
7 years ago
Jordi Boggiano 1a488bce01 Base64 encode debug output to avoid dumping binary and push it to the end of the line 7 years ago
Jordi Boggiano 221d80d1e1 Merge branch '1.4' 7 years ago
Jordi Boggiano 2eb69cd679 Always recommend using global config to store auth tokens 7 years ago
Matt Isenhower 4dc8748e68 Update GitLab personal access token URL and the token config command 7 years ago
Jordi Boggiano 0723654362 Merge branch '1.4' 7 years ago