Niels Keurentjes
0dab63e050
Unified all Windows tests throughout the code.
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
Alexander Loutsenko
397ae2d7c8
review fixes
9 years ago
Alexander Loutsenko
fa5de786ff
clean garbage dirs in tmp after composer tests #4694
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
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
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.
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
77163f66fc
Add support for mirrors in composer repos
11 years ago
Jordi Boggiano
5d4900e79d
Add --no-checkout flag to avoid checking out the default branch first, fixes #2717
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
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
0822683706
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
3fd883a489
Set cwd instead of using cd in GitDownloader, refs #1832
12 years ago
Jordi Boggiano
b641f9ea68
Fix tests
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
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
Jordi Boggiano
73a865bf2a
Fix tests
12 years ago
Jordi Boggiano
4bbb168d44
Remove BC code
12 years ago
Martin Hasoň
c8d110aa72
Imporoved exception message for GitDownloader (various protocols for github)
13 years ago
Jordi Boggiano
a9fe883827
Use https fallback for github private repos if ssh protocol fails and we can ask the user's password
13 years ago
Jordi Boggiano
ed8aa8322a
Do not prevent updates if untracked files are present
13 years ago
Jordi Boggiano
5ceae7fb1f
Fix tests
13 years ago
Jordi Boggiano
047fa0b553
Add a composer remote that is used by composer so it does not take over the origin one anymore
13 years ago
Jordi Boggiano
6f8031ac90
Fix error reporting for missing git process
13 years ago
Jordi Boggiano
6aaa523c0d
Fix tests
13 years ago
Jordi Boggiano
a3fa19a716
Avoid escaping too early to prevent issues
13 years ago
Jordi Boggiano
13a2bc6ff0
Revert "Fix push url hack"
...
This reverts commit 269537e466
.
13 years ago
Jordi Boggiano
269537e466
Fix push url hack
13 years ago
Jordi Boggiano
1cdae66f8f
Fix up git downloader and git driver commands
13 years ago
Jordi Boggiano
afa14124f3
Make sure we fetch origin with tags before checking out a new version
13 years ago
Jordi Boggiano
e763af7412
Set push url correctly for github clones
13 years ago
Jordi Boggiano
5696b44a4f
Fix tests
13 years ago
Jordi Boggiano
ada9c20db1
Update Git/Hg downloaders tests, making sure they never use a live filesystem instance
13 years ago
Frank Kleine
025f6066ff
fix file permissions
13 years ago
mikey179
0e5a4e07ba
add tests to make sure a runtime exception is thrown if return code from git command line call is not 0
13 years ago
mikey179
895d901bf9
better error handling when git command runs into a failure, fixes #340
13 years ago
Jordi Boggiano
230e145053
Fix downloader tests on windows and mock Filesystem properly
13 years ago
Leszek Prabucki
19878c2dc1
Fixed tests after update and merge of changes from upstream/master
13 years ago
Leszek Prabucki
de7f666118
Added and extended some unit tests
13 years ago