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.
7077803aa4
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 | |
---|---|---|
.. | ||
Fixtures | 12 years ago | |
ArchiveDownloaderTest.php | 11 years ago | |
DownloadManagerTest.php | 11 years ago | |
FileDownloaderTest.php | 10 years ago | |
GitDownloaderTest.php | 10 years ago | |
HgDownloaderTest.php | 11 years ago | |
PearPackageExtractorTest.php | 10 years ago | |
PerforceDownloaderTest.php | 10 years ago | |
ZipDownloaderTest.php | 11 years ago |