481 Commits (e4ede0c582e39949a1a50fdc0249e94ccc64bb9b)

Author SHA1 Message Date
Jordi Boggiano e4ede0c582 Merge remote-tracking branch 'bozerkins/force-to-reinstall-package-when-missing-vcs-metadata' 9 years ago
Jordi Boggiano 8808638ea9 Make sure cache clearing works easily in all cases 9 years ago
Jordi Boggiano 2378c9e308 Remove dead code 9 years ago
Jordi Boggiano 477da3a448 Fix clearCache in case of download failure 9 years ago
Jordi Boggiano 502c5431a2 Add hashing of the complete URL for cache entries of dist downloads for extra safety 9 years ago
bogdan e0fad1f55b Implemented interactive user confirmation on source package update failure
Removed unnecessary options for installation
Removed unnecessary exception
9 years ago
Jordi Boggiano 16215c1937 Merge pull request #4877 from cs278/zip-zlib-muddle
zlib suggest and fallback on non Windows
9 years ago
bogdan 581ce91f90 Implemented new option (ignore-missing-metadata) for composer install command
The command allows to slightly change how repository updates are handled during install

In the previous version composer failed to updated if .git|.svn|.hg folder was missing from the package
In the current version, with the option enabled, if the update fails for exactly this reason,
it'll try to remove the package completely and install it from remote
9 years ago
bogdan a77e2fb093 Removed code duplication with abstract hasMetadataRepository method
which checks if vcs metadata is present in the package

Fixed a bug with -vvv mode. When .git folder is missing from package
in normal mode, -v mode, -vv mode the program throws the exception about missing .git folder
in -vvv mode an exception about inability to read logs
9 years ago
Chris Smith e4877473cf Fallback to zlib extension to unpack gzip on non Windows systems 9 years ago
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano a13b06725e Add support for if-modified-since on lazy repos and turning packagist into a lazy provider repo 9 years ago
Jordi Boggiano c1cc6bfecf Avoid doing too many loads of the remotefilesystem 9 years ago
Jordi Boggiano 86a911150b Update bundled CAfile and other cleanups 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano 5dbc8fa30b Make sure getRepoConfig is only called on VcsRepos, refs #4700 9 years ago
Jordi Boggiano f874842535 Merge remote-tracking branch 'chorry/4331-svn-creds' 9 years ago
Jordi Boggiano 47b05eab7a Fix type errors 9 years ago
Jordi Boggiano 29312be4df Strict typing fixes 9 years ago
Alexander Loutsenko f42ba46175 #4331 use --no-auth-cache for svn downloader when such option was set 9 years ago
Jordi Boggiano 966a982738 CS fixes 9 years ago
Jordi Boggiano 67a1924173 Merge remote-tracking branch 'Rudloff/xz' 9 years ago
Jordi Boggiano 690c7f572f Enable -f flag based on user selection and not only config values, refs #3789 9 years ago
Steve Buzonas 27d51642c8 stash untracked and force checkout if discarding changes 9 years ago
Jordi Boggiano d35fc31f62 Add process error to the output of failed unzipping 9 years ago
Pierre Rudloff 3abad250e9 .tar.xz downloader 9 years ago
xelan 32517d90d2 Escape angle brackets for commit message output 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Samuel ROZE f6d5d65bcd Use shortest relative paths for symlinks 9 years ago
Samuel ROZE d0a9550dea Uses `realpath` to fix relative path issues 9 years ago
Samuel ROZE a3f5f60359 Update output to have a coherent one 9 years ago
Samuel ROZE 0e8c5fa62e Store path from composer.json with the `path` repository to ensure lock file to be reused 9 years ago
Jordi Boggiano 89c6a68a76 Updates to path repository and path downloader, refs #4365 9 years ago
Samuel ROZE ead68d3d49 Create the path repository and downloader 9 years ago
Jordi Boggiano 33badac0a8 Include full error message in debug mode 9 years ago
iamluc d02ab54be1 Add a new option to view local modifications (git diff) 9 years ago
Kunal Mehta f634c6946d Update callers of VersionParser::formatVersion()
Tests were moved to BasePackageTest.
9 years ago
Jordi Boggiano 6a64041055 CS fixes 9 years ago
Andreas Möller eac5fbdee4 Fix: Remove unused imports 9 years ago
Wim Vandersmissen 1ff2a02517 fix to download correct Bitbucket archive reference when using --prefer-dist 9 years ago
Rob Bast b957d1c4a6 load xml as string from local file, fixes #3942
If the entity loader is disabled on a system, loading files, even from
the local file system, is considered as external to the running php
process, and thus not allowed by the libxml extension. Reading the file
contents and loading the xml as a string is a valid alternative however.
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
Possum 2e99b9fdf5 Use https where possible 9 years ago
Jordi Boggiano ec6d727af8 Add comment about --, refs #3853 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
Jordi Boggiano 777f2e81a3 Show more info when a download fails 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