You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
..
Fixtures Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files 12 years ago
ArchiveDownloaderTest.php Oops 11 years ago
DownloadManagerTest.php Fail over from source to dist and vice versa when downloads fail 11 years ago
FileDownloaderTest.php CS fixes 10 years ago
GitDownloaderTest.php Git Checkout Branch / File Differentiation 9 years ago
HgDownloaderTest.php Add support for mirrors in composer repos 10 years ago
PearPackageExtractorTest.php CS fixes 10 years ago
PerforceDownloaderTest.php Implement writeError throughout Composer 9 years ago
ZipDownloaderTest.php Add support for mirrors in composer repos 10 years ago