122 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano bd6403a6be
Fix newly surfaced errors 2 years ago
Jordi Boggiano 615530f0a1
Merge branch '2.2' into main, update baseline (2085, 104) 2 years ago
Stephan 2c40c53637
Merge pull request from GHSA-x7cr-6qr6-2hh6
* GitDriver: filter branch names starting with a - character

* GitDriver: getFileContent prevent identifiers starting with a -

* HgDriver: prevent invalid identifiers and prevent file from running commands

* HgDriver: filter branches starting with a - character
2 years ago
Stephan 866d2a49b2
GitDriver: try to fetch default branch form remote using auth (#10701) 2 years ago
Stephan ef12e42bdb
GitDriver: try to fetch default branch from remote (#10687)
The initial clone determined what the default branch of the cache git repository was. Changing it on the remote didn't have any impact on the local data. However, cloning it on a different machine would then store a different default branch on that machine. This could lead to different results for the same command on different machines.
2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 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 e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch (#10474) 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 years ago
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 3 years ago
Martin Herndl 3645d3042c
Add types to root namespace (#10213) 3 years ago
Jordi Boggiano 01d734125c
Add more type info 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 e7f6dd287c
Merge branch '1.10' 3 years ago
Jordi Boggiano abcf9e993b
Fix processes silently ignoring the CWD when it does not exist, refs #9694 3 years ago
Simon Berger 2223b93efd Several small code improvements 4 years ago
Simon Berger cda6e8bea6 Removed unnecessary property initialization or declaration 4 years ago
Jordi Boggiano c3db4614c9
Also remove credentials from cache dirs in git/svn drivers, fixes #7439, refs #9155 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Jordi Boggiano 821e575658
Merge branch '1.10' 4 years ago
Stephan Vock 52332d994e GitDriver: use authentication for supports check 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano aa6be02c64
Allow COMPOSER_DISABLE_NETWORK to work with GitHubDriver by doing a cache priming pass first 4 years ago
Cyril VERLOOP 0bd3f27693
Do not show commit signature for git log. 5 years ago
Jordi Boggiano 02ceb74151 Tweak --no-cache option to be available globally and to not break VCS drivers relying on it, refs #7880, refs #6650 5 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano 1bc8b702ca Fix handling of annotated tags and prefer them over lightweight tags, fixes #5555 8 years ago
Thomas Flori 7896b1ffab cache only rendered composer information
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori d70dfd2df3 revert style changes 8 years ago
Thomas Flori 33d026bb06 fix code style to be PSR-2 conform
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
8 years ago
Thomas Flori 597f834ae9 add getFileContent function
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.

By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano 4998ee27b3 Re-use mirror code from the git driver, refs #5384 8 years ago
Jordi Boggiano 766c45c047 Add support for local paths pointing directly at the .git folder instead of actual repo, refs #3338 8 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 9 years ago
David Verholen 2d9401fb13 fix bug in GitDriver::supports for remote repo
for some reason it does not work (in packagist) without the $output param. I don't get any error message here, maybe someone has an idea, why?

Anyway, need this ;)
9 years ago
brandung GmbH & Co. KG d650f05ddf removed needless output param 9 years ago
davidverholen 50d068b977 + limit git ls-remote to heads
+ escape repo url
9 years ago
davidverholen 80d7ab57ed add check for remote Repository in GitDriver::supports 9 years ago
Jordi Boggiano e0291f3a30 Fix parsing of empty git commits, fixes #3565 10 years ago
Jordi Boggiano 5133c3fe9a Merge pull request #3424 from kaktus42/master
return false if local file path does not exist in GitDriver and HgDriver
10 years ago
Jordi Boggiano 2b7b605839 Skip empty time values 10 years ago
kaktus42 116ccdac62 return false if local file path does not exist in GitDriver and HgDriver 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano e61e62908e Merge remote-tracking branch 'frederikbosch/patch-1' 10 years ago
Jordi Boggiano 91ac3e1426 Add support for unixy paths in git/hg local repo urls, closes #3294 10 years ago