Jordi Boggiano
bd6403a6be
Fix newly surfaced errors
2 years ago
Stephan
866d2a49b2
GitDriver: try to fetch default branch form remote using auth ( #10701 )
2 years ago
Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
89ce53250e
Final type additions
2 years ago
Jordi Boggiano
7abc8da7d3
Add more types
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors ( #10476 )
...
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Niels Vanpachtenbeke
1c928466a9
Remove code blocks for php <7.2 compatibility ( #10417 )
2 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
2 years ago
Jordi Boggiano
bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv ( #10218 )
3 years ago
Martin Herndl
995bf5a932
Add types to `Util` namespace, refs #10159 ( #10190 )
3 years ago
Martin Herndl
f0cc9aeb01
Remove scalar parameter type declaration ( #10186 )
...
`string` can only be used in parameters starting from PHP 7.0.
3 years ago
Sergii Dolgushev
90d112d98a
Mask Git credentials in the error message ( #10115 )
3 years ago
Jordi Boggiano
0761474599
Add type info to many properties/methods
3 years ago
Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
3 years ago
Jordi Boggiano
332c46af8b
Merge pull request from GHSA-h5h8-pc6h-jvvx
...
* Fix external process calls to avoid user input being able to pass extra parameters
* Tweak some fixes
3 years ago
Jordi Boggiano
6a869ede77
Fail early if git/hg/svn can not be found on the system, so that download can be retried from dist, fixes #9681
3 years ago
Jordi Boggiano
1a0e578b14
Remove ungreedy modifier and make a few domain matches case insensitive, fixes #9656
3 years ago
Jordi Boggiano
125f8a3319
Merge branch '1.10'
3 years ago
Jordi Boggiano
2cb9630320
Fix $_SERVER var not being updated when using putenv, refs b80038804f
and fixes #9372
3 years ago
Jordi Boggiano
147d884996
Also avoid matching .git suffix in bitbucket URLs, refs #9590
3 years ago
Jordi Boggiano
a20ee1a448
Avoid matching .git suffix if present in private github URLs, fixes #9590
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
852990d06c
Make sure git gc runs if needed when syncing git mirrors in cache dir to avoid them getting very stale
4 years ago
Simon Berger
2223b93efd
Several small code improvements
4 years ago
Simon Berger
a6475a7118
Removed unused variables, properties and parameters of private functions
4 years ago
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