178 Commits (38a34159ef6e2faf49d55fde3b4f571e206ff987)

Author SHA1 Message Date
Jordi Boggiano 79d62cc51c Escape references properly when getting commit logs for verbose update 6 years ago
Jordi Boggiano 50665aa18d Simplify check for current revision, refs #6684 7 years ago
Robert Lu e768e297cd fetch tag,commit form local but not ref 7 years ago
Robert Lu 0ad985122d Don't fetch when ref already on local 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano 260b85882f Merge remote-tracking branch 'dzuelke/installmsgs' into 1.3 7 years ago
Pieter Frenssen 9020b7113c Fix invalid calculation on non-numeric string 8 years ago
David Zuelke 2d36324e99 streamline install progress messages 8 years ago
Jordi Boggiano a1b468ea50 Fix git shortening, it is sunday.. 8 years ago
Jordi Boggiano 58b94b66e5 Shorten git hashes to 10chars to avoid long lines, refs #5946 8 years ago
Jordi Boggiano 4d082f77b8 Simplify composer output to take less lines 8 years ago
Richard Heelin 5dfd23668e Only update the git repo if the commit we want doesn't exist, speeds up update from source 8 years ago
Jordi Boggiano 2f3db8c397 Make it clear that a package is cloned from source, fixes #5489 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
Marco Villegas 44f94a7b83 Prevent duplicate file checking on git download. 8 years ago
Marco Villegas 7e91e9fd80 Use git cache path to mirror the repository before download to vendor target. 8 years ago
Luís Faceira 7b22b7a511 Use dissociate git option
Added the usage of dissociate so that the repos work properly
even if the cache gets deleted after the clone
8 years ago
Luís Faceira 5dd35c590e Escaped git --reference argument 8 years ago
Luís Faceira 292bd3f6a3 Use vcs dir as git reference, if existing, to speed up download
Also added home dir to default initial settings
8 years ago
Jordi Boggiano 9cb6c2322a Fix more git URL escaping 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 e4711326a4 Fix tests 8 years ago
Jordi Boggiano b31052fcde composer status now includes untracked files in git repos, fixes #2664 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 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 d347e1efca Minor tweaks refs #4878 8 years ago
Jordi Boggiano e4ede0c582 Merge remote-tracking branch 'bozerkins/force-to-reinstall-package-when-missing-vcs-metadata' 8 years ago
bogdan e0fad1f55b Implemented interactive user confirmation on source package update failure
Removed unnecessary options for installation
Removed unnecessary exception
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
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 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 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
iamluc d02ab54be1 Add a new option to view local modifications (git diff) 9 years ago
Andreas Möller eac5fbdee4 Fix: Remove unused imports 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
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 fb1747624c Force the origin remote url to be the original one and not that of a mirror 10 years ago
Jordi Boggiano 332a933e8b Remove fallback on missing commit, fixes #3314, fixes #3147 10 years ago
Chris Harvey 43b9ef309e Adding missing closing <info> tag when re-applying stashed changes 10 years ago
Jordi Boggiano 4e774e8b2c Fix formatting 10 years ago