Ion Bazan
58b34d13e8
fix risky tests (without any assertion)
5 years ago
Ion Bazan
a2137d5263
use Symfony PHPUnit Bridge
5 years ago
Jordi Boggiano
de189c1b80
Fix deps=high build
5 years ago
Jordi Boggiano
f6b3f12107
Merge branch 'master' into 2.0
5 years ago
Sergii Bondarenko
bb127aa3e7
Resolves #8461 : [ZipDownloader] Print `unzip` exit code when the command is failed
5 years ago
Jordi Boggiano
88b051c96b
Merge branch 'master' into 2.0
...
Update deps
5 years ago
johnstevenson
7e649fac41
Fix Windows test regression from commit 149250a
...
Commit: 149250ab92
ProcessExecutor::escape handled a false value inconsistently across
platforms, returning an emtpy string on Windows, otherwise `''`. This
is fixed to return `""` on Windows.
The GitDownloaderTest code has been appropriately updated.
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
53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
5 years ago
Gabriel Caruso
6c8ddd4d57
Remove unused private properties
5 years ago
Jordi Boggiano
0caa616e6c
Fix test warnings
6 years ago
Jordi Boggiano
799717f102
Tweak and fix some more phpstan reports
6 years ago
CZechBoY
a062cd1a31
added phpstan on level 0
6 years ago
Jordi Boggiano
0fd74d1cc4
Fix PerforceDownloader, fixes #7979
6 years ago
Jordi Boggiano
71193132a3
Fix test
6 years ago
Jordi Boggiano
4517c00d40
Merge branch 'master' into 2.0
6 years ago
Jordi Boggiano
98a15bc93c
Add output for metapackage installs/updates/.. fixes #7586
6 years ago
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
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
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
Gabriel Caruso
71c8735e11
Use combined assignment operators
6 years ago
Gabriel Caruso
a17f051e29
Remove useless parentheses
6 years ago
Jordi Boggiano
c917865fe9
Fix handling of dev versions and consolidate logic, refs #7119
7 years ago
Jordi Boggiano
24ad6307a7
Merge remote-tracking branch 'austris-argalis/issue-7085'
7 years ago
Edwin Rodríguez
9dc6222288
Allow using fossil dependency in a fossil repository, fixes #7125 , closes #7126
7 years ago
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
7 years ago
austris argalis
8a5645ffda
Wording: Downgrading instead of Updating #7085
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
John Stevenson
02fbbd5a42
Skip MockedZipDownloader tests if zip is missing ( #6917 )
...
* Skip MockedZipDownloader tests if zip is missing
7 years ago
Gabriel Caruso
afc9a7643e
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
7 years ago
Robert Lu
3ce71a55bf
fix unittest
7 years ago
Martin Hasoň
88ec172bd8
Fix CS
7 years ago
Jordi Boggiano
c917c52f81
Message tweak, refs #6341
7 years ago
AjiYakin
8858b27ced
Warn identical names w/ different capitalization - extract zip archive
...
Warn about identical names with different capitalization on zip archive
extract failure (Not a directory)
Issue #5938
7 years ago
Jordi Boggiano
61511cfed6
Fix CS issues, refs #6159
8 years ago
Jordi Boggiano
0a337e7c75
Merge remote-tracking branch 'gza/fix_unzip_on_win_php56'
8 years ago
Guillaume ZITTA
f89e01d622
switch first / fallback order
8 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Guillaume ZITTA
abf06913a2
remove useless expect (already done by docstring)
8 years ago
Guillaume ZITTA
921ffe741f
Cleaner fallback Algorithm
8 years ago
AnrDaemon
1d2a949e3e
Properly fix git excludes.
...
Mindless copy-paste never gets old. Sorry. This is fixed proper this time.
8 years ago
AnrDaemon
ab70601700
Skip git-related tests if no git found.
8 years ago
Richard Heelin
c2f6c61f56
Updated the tests to match the new command that is executed
8 years ago
Jordi Boggiano
788f32ac93
Allow running test suite with osx tar, fixes #5662
8 years ago
Jordi Boggiano
334d0cce6b
Make sure we do not clone from local mirror if mirroring failed
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
bohwaz
be013e5572
Fossil VCS tests
8 years ago
Marco Villegas
869b3ef954
New test to check git download behavior with cache.
8 years ago
Marco Villegas
cb6cfa9635
Isolate config setup to make it reusable at GitDownloaderTest.
8 years ago
Marco Villegas
b5c55d5167
Adjust GitDownloaderTest to include for the new getVersion() method in Git.
8 years ago
Luis Faceira
1d733ba21a
GitDownloaderTest uses temp dir as composer home config
...
When creating a DownloaderMock a home config dir is
ensured to exist, so that no test fails for lack of it
that on a regular run would be set by the Factory
8 years ago
Jordi Boggiano
73139a59bf
Update origin remote URL when package URL changed and origin still uses the same url as the composer remote, fixes #3874
9 years ago
Jordi Boggiano
b93b73e836
Rewrite git unpushed status checks, fixes #4987
9 years ago
Jordi Boggiano
fea99bcb1b
Clarify the fetch/push URL selection for github repos and various protocols, fix regression
9 years ago
Jordi Boggiano
b080a73840
Fix broken test on windows, fixes #4973
9 years ago
Jordi Boggiano
6f42b9c865
Disable git, svn, http protocols for VCS downloaders, fixes #4968
9 years ago
Jordi Boggiano
0ed5b541a9
Fix CS
9 years ago
Jordi Boggiano
f2e2dd8f86
Merge pull request #4972 from curry684/code-quality
...
Code quality
9 years ago
Niels Keurentjes
a409e158b8
Disabled unit test breaking on some platforms. Ref #4973
9 years ago
Niels Keurentjes
3a66d1b9bb
Fixed unit test explicitly depending on erroneous method invocation.
9 years ago
Jordi Boggiano
2f638c7d96
Fix test
9 years ago
Jordi Boggiano
be4d385942
Fix uncommitted change detection, refs #3633
9 years ago
Jordi Boggiano
9f4f8a9578
Merge remote-tracking branch 'greg0ire/improve-status-for-unpushed-branches'
9 years ago
Jordi Boggiano
06be9b88c2
Merge remote-tracking branch 'slbmeh/feature/gh-2787'
9 years ago
Magnus Nordlander
4689d836fe
Fixed (and added a test for) a regression introduced in a77e2fb
, which causes package Git package updates to fail when the package has two or more URLs and the last URL is the only one that actually works.
9 years ago
Niels Keurentjes
0dab63e050
Unified all Windows tests throughout the code.
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Jordi Boggiano
783e0aec8a
Merge remote-tracking branch 'alcohol/unique-test-directories'
9 years ago
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Rob Bast
446f1b3e31
fix zip test
9 years ago
Jordi Boggiano
e6f1c13d00
xz test tweak
9 years ago
Jordi Boggiano
5214620f05
Fix xz tests
9 years ago
Jordi Boggiano
5d015defb8
Merge remote-tracking branch 'origin/master' into tls-config
9 years ago
Jordi Boggiano
969263944c
Rename var
9 years ago
Alexander Loutsenko
397ae2d7c8
review fixes
9 years ago
Alexander Loutsenko
fa5de786ff
clean garbage dirs in tmp after composer tests #4694
9 years ago
Pierre Rudloff
879d34589b
XzDownloader test
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
James Titcumb
d85bad29d6
Warn about unpushed changes
...
`composer status` now prevents overwriting Git package if changes have not been pushed.
9 years ago
Wim Vandersmissen
1ff2a02517
fix to download correct Bitbucket archive reference when using --prefer-dist
9 years ago
Rob Bast
d59115d7fa
make unit tests assume a disabled entity loader
9 years ago
Jordi Boggiano
0081964428
Merge remote-tracking branch 'colinodell/fix-tag-ambiguity'
...
Conflicts:
src/Composer/Downloader/GitDownloader.php
tests/Composer/Test/Downloader/GitDownloaderTest.php
9 years ago
Steve Buzonas
b44c3bee52
add tests to cover different use cases of package install preferences
10 years ago
hakre
7077803aa4
Git Checkout Branch / File Differentiation
...
This fixes a minor inaccuracy issue when creating git checkout commands
for branches.
The git checkout command used within `GitDownloader::updateToCommit()`
does not use the "`--`" sequence to separate branch from file parameters.
This leads to an inaccuary as git tries as well the branch name as file
name. If the non-existent branch is actually the name of a file, the file
is checked out. If the non-existent branch is not the name of a file, an
error message is given:
> error: pathspec 'non-existent-branch' did not match any file(s) known to
git.
Both cases are not expected for the program flow in
`GitDownloader::updateToCommit()`.
The only thing that is expected is a non-existent branch to fail to
checkout - but with a different error message:
> // reference was not found (prints "fatal: reference is not a tree:
$ref")
This can be easily fixed by adding the missing separator when constructing
the command which is applied with this commit.
10 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
10 years ago
Padraic Brady
19e24c5804
Merge branch 'master' into tls-config
...
Conflicts:
.travis.yml
doc/03-cli.md
src/Composer/Command/ConfigCommand.php
src/Composer/Command/CreateProjectCommand.php
src/Composer/Command/DiagnoseCommand.php
src/Composer/Command/InstallCommand.php
src/Composer/Command/RequireCommand.php
src/Composer/Command/SelfUpdateCommand.php
src/Composer/Command/ShowCommand.php
src/Composer/Command/UpdateCommand.php
src/Composer/Config.php
src/Composer/Downloader/FileDownloader.php
src/Composer/Factory.php
src/Composer/Repository/ComposerRepository.php
src/Composer/Repository/PearRepository.php
src/Composer/Repository/Vcs/VcsDriver.php
src/Composer/Util/GitHub.php
src/Composer/Util/RemoteFilesystem.php
10 years ago
Colin O'Dell
f304611014
Fix Git failures due to tag ambiguity (issue #3417 )
10 years ago
Jordi Boggiano
a309e1d89d
Fix tests and run it before the push url updater
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
97873a27af
Update perforce code
11 years ago
Jordi Boggiano
77163f66fc
Add support for mirrors in composer repos
11 years ago
Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
11 years ago
Jordi Boggiano
016a016455
Merge remote-tracking branch 'lcobucci/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 years ago
Clark Stuth
a12c4e2a17
Removed getWindowsFlag and setWindowsFlag methods from Perforce object.
11 years ago
Clark Stuth
dd1fd0e306
fixed perforce to reference labels instead of invalid tags
11 years ago