269 Commits (main)

Author SHA1 Message Date
Jordi Boggiano 0a337e7c75 Merge remote-tracking branch 'gza/fix_unzip_on_win_php56' 7 years ago
Guillaume ZITTA f89e01d622 switch first / fallback order 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Guillaume ZITTA abf06913a2 remove useless expect (already done by docstring) 7 years ago
Guillaume ZITTA 921ffe741f Cleaner fallback Algorithm 7 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 8 years ago
Jordi Boggiano b93b73e836 Rewrite git unpushed status checks, fixes #4987 8 years ago
Jordi Boggiano fea99bcb1b Clarify the fetch/push URL selection for github repos and various protocols, fix regression 8 years ago
Jordi Boggiano b080a73840 Fix broken test on windows, fixes #4973 8 years ago
Jordi Boggiano 6f42b9c865 Disable git, svn, http protocols for VCS downloaders, fixes #4968 8 years ago
Jordi Boggiano 0ed5b541a9 Fix CS 8 years ago
Jordi Boggiano f2e2dd8f86 Merge pull request #4972 from curry684/code-quality
Code quality
8 years ago
Niels Keurentjes a409e158b8 Disabled unit test breaking on some platforms. Ref #4973 8 years ago
Niels Keurentjes 3a66d1b9bb Fixed unit test explicitly depending on erroneous method invocation. 8 years ago
Jordi Boggiano 2f638c7d96 Fix test 8 years ago
Jordi Boggiano be4d385942 Fix uncommitted change detection, refs #3633 8 years ago
Jordi Boggiano 9f4f8a9578 Merge remote-tracking branch 'greg0ire/improve-status-for-unpushed-branches' 8 years ago
Jordi Boggiano 06be9b88c2 Merge remote-tracking branch 'slbmeh/feature/gh-2787' 8 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. 8 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 9 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.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 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 10 years ago
Jordi Boggiano 77163f66fc Add support for mirrors in composer repos 10 years ago
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 10 years ago
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
10 years ago
Clark Stuth a12c4e2a17 Removed getWindowsFlag and setWindowsFlag methods from Perforce object. 10 years ago
Clark Stuth dd1fd0e306 fixed perforce to reference labels instead of invalid tags 10 years ago
Clark Stuth 24dd42267f almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods 10 years ago
Clark Stuth 0f7b078d6c added new dependency to Perforce object, updating some tests. 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Nils Adermann 5ed18d9aa2 Fail over from source to dist and vice versa when downloads fail
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
10 years ago
Jordi Boggiano 5d4900e79d Add --no-checkout flag to avoid checking out the default branch first, fixes #2717 11 years ago
Julius Beckmann ed5da804dd Fixed handling of Metapackages in DownloadManager.
The "getDownloaderForInstalledPackage" returns null for "metapackage" and the download(), update() and remove() methods did not handle this return value correctly.
11 years ago
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
11 years ago
mwhittom a8084e46ff Added error handling and error messages around missing perforce driver, invalid username/password 11 years ago
user a956ce9bb1 Use 'cache-files-ttl' for cache gc, fixes #2441
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.

* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
Jordi Boggiano 7148b22414 Add github-domains config value for GitHub Enterprise setups, fixes #728
Signed-off-by: Gennady Feldman <gena01@gmail.com>
11 years ago
Jordi Boggiano f5df1d6a9b Fix cs 11 years ago
Jordi Boggiano 0fbb4cbd16 CS fixes and renaming a few methods, refs #2184 11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 9a806658d6 Merge remote-tracking branch 'vuhl/master'
Conflicts:
	src/Composer/Factory.php
11 years ago
mwhittom 2e737ac439 updated to replace double-quotes with single quotes 11 years ago
mwhittom f7d9f3d8b4 Fixed Test method setUp to be protected instead of private. 11 years ago
mwhittom 07d46aa3c3 Fixed spacing issues for PSR-2 11 years ago
mwhittom 774a55befd Updated to match psr-2 spec, fixed header comments 11 years ago
matt-whittom 8379985166 Updated/Standardized header comments 11 years ago
matt-whittom dd81449998 Updated to remove vfsStreams (no longer needed by tests)
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom 1015957659 Added tests and code for tests 11 years ago
Nils Adermann 2ca07add97 Merge remote-tracking branch 'github-composer/master' into plugins
* github-composer/master:
  Correct FileDownloaderTest for invalid checksum

Conflicts:
	tests/Composer/Test/Downloader/FileDownloaderTest.php
11 years ago
Nils Adermann 72919e04b0 Correct FileDownloaderTest for invalid checksum 11 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 11 years ago
Luís Otávio Cobucci Oblonczyk d4043b6b9a Package options must be passed as argument to downloader 11 years ago
Jordi Boggiano 7912253df6 Retry downloading when a corrupt zip is found, fixes #2133, fixes #2128, fixes #2125 11 years ago
Jordi Boggiano 7252078508 Attempt to fix travis build 11 years ago
Jordi Boggiano 771233a5a0 Make it clear what is going on when a vcs folder is missing, fixes #2108 11 years ago
Jordi Boggiano ab731b1197 Oops 11 years ago
Jordi Boggiano be235ffc19 Fix 5.3.3 build 11 years ago
Jordi Boggiano 0822683706 Fix tests 11 years ago
Jordi Boggiano 7f2b321044 Fix tests 11 years ago
Jordi Boggiano 6b876958b9 Fix tests 11 years ago
Stéphane Klein 42119dde6b Use github protocols setting for push urls 11 years ago
Jordi Boggiano c479a26d71 Add workaround for msysgit failing to handle symlinks on windows, fixes #1048, fixes #1418 11 years ago
Jordi Boggiano 4cac2caf70 Make sure cd call allows switching drives on windows, fixes #1971 11 years ago
Jordi Boggiano 8b8dc1fd70 Remove all possible cd calls, refs #1971 11 years ago
Jordi Boggiano 3fd883a489 Set cwd instead of using cd in GitDownloader, refs #1832 11 years ago
Filippo Tessarotto 470adc47df Switched rand() to mt_rand() 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Jordi Boggiano b641f9ea68 Fix tests 12 years ago
Jordi Boggiano 5a9d986e67 Implement cache GC and fix keys 12 years ago
Jordi Boggiano 1682532b80 Update code to use new github archive URLs 12 years ago
Jordi Boggiano 0878c6deab Fix nodeload fallback URLs 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago
Jordi Boggiano ed9fcc5074 Fix tests 12 years ago
Jordi Boggiano f752b29fc6 Always make sure we are on the right branch 12 years ago
Jordi Boggiano 3068f29b4f Checkout branch by name when the current reference matches the branch tip, fixes #1164 12 years ago
Jordi Boggiano 027037bb9f Fix dist urls for lock files and hardcoded references 12 years ago
Jordi Boggiano 056dc5d690 Move config to all VcsDownloaders, enforce array for github-protocols 12 years ago
Martin Hasoň 3b6bd761ec Set protocols for github in composer config file 12 years ago
Jordi Boggiano 354b82bb8c Fix git checkouts of custom branches, fixes #889 12 years ago
Jordi Boggiano eb283b34e4 Revert "Fix git checkouts of custom branches, fixes #889"
This reverts commit cbf27bb422.
12 years ago
Jordi Boggiano cbf27bb422 Fix git checkouts of custom branches, fixes #889 12 years ago
Alexey Prilipko ac3cebc633 Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano ccc6fa3714 Merge pull request #775 from palex-fpt/PR-746
PEAR Packages extraction based on package.xml format
12 years ago
Jordi Boggiano 73a865bf2a Fix tests 12 years ago
Jordi Boggiano 4bbb168d44 Remove BC code 12 years ago
Alexey Prilipko a88265a497 Update PearPackageExtractor for package.xml 2.1 support 12 years ago
Grégoire Pineau f4e9dd4fb8 Fixed PSR rules 12 years ago
Alexey Prilipko 5c16889c48 Update PearDownloader to use PEAR extractor 12 years ago
Alexey Prilipko 01a49ea49e Add PEAR package extractor that honours package.xml formats 12 years ago
Martin Hasoň c8d110aa72 Imporoved exception message for GitDownloader (various protocols for github) 12 years ago
Jordi Boggiano a9fe883827 Use https fallback for github private repos if ssh protocol fails and we can ask the user's password 12 years ago
Jordi Boggiano ed8aa8322a Do not prevent updates if untracked files are present 12 years ago
Jordi Boggiano 0e9f88a3da Fix DownloadManagerTest creating directories on disk 12 years ago
Jordi Boggiano 5ceae7fb1f Fix tests 12 years ago
Jordi Boggiano 047fa0b553 Add a composer remote that is used by composer so it does not take over the origin one anymore 12 years ago
Jordi Boggiano 6f8031ac90 Fix error reporting for missing git process 12 years ago
Jordi Boggiano 6aaa523c0d Fix tests 12 years ago
Jordi Boggiano a3fa19a716 Avoid escaping too early to prevent issues 12 years ago
Jordi Boggiano 13a2bc6ff0 Revert "Fix push url hack"
This reverts commit 269537e466.
12 years ago
Jordi Boggiano 269537e466 Fix push url hack 12 years ago
Jordi Boggiano 1cdae66f8f Fix up git downloader and git driver commands 12 years ago
Jordi Boggiano afa14124f3 Make sure we fetch origin with tags before checking out a new version 12 years ago
Jordi Boggiano beb4cbcd2b Add test for ZipDownloader 12 years ago
Jordi Boggiano b9f770177b Fix tests 12 years ago
Jordi Boggiano 7cb79bb1c9 Fix typo & tests 12 years ago
Nils Adermann 15e764bb3f Merge pull request #439 from Seldaek/git_push
Set push url correctly for github clones
12 years ago
Jordi Boggiano a02940cafb Fix tests 12 years ago
Jordi Boggiano e763af7412 Set push url correctly for github clones 12 years ago
Jordi Boggiano 8bd0814b67 Merge pull request #420 from digitalkaoz/composer_tests
added some trivial tests
12 years ago
Jordi Boggiano 5696b44a4f Fix tests 12 years ago
digitalkaoz a284eb5cfe coding style fixes 12 years ago
digitalkaoz 8dad8d8c43 added some trivial tests 12 years ago
Jordi Boggiano ada9c20db1 Update Git/Hg downloaders tests, making sure they never use a live filesystem instance 12 years ago
Martin Hasoň f026e2a0eb Added tests for FileDownloader and ArchiveDownloader 13 years ago