Jordi Boggiano
fea99bcb1b
Clarify the fetch/push URL selection for github repos and various protocols, fix regression
9 years ago
Jordi Boggiano
be4d385942
Fix uncommitted change detection, refs #3633
9 years ago
Jordi Boggiano
9f4f8a9578
Merge remote-tracking branch 'greg0ire/improve-status-for-unpushed-branches'
9 years ago
Jordi Boggiano
d347e1efca
Minor tweaks refs #4878
9 years ago
Jordi Boggiano
e4ede0c582
Merge remote-tracking branch 'bozerkins/force-to-reinstall-package-when-missing-vcs-metadata'
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
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
10 years ago
Jordi Boggiano
ec6d727af8
Add comment about --, refs #3853
10 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
Rob Bast
cb336a5416
Implement writeError throughout Composer
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
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
frederik
d1d40502bf
ProcessExecutor::escape
10 years ago
frederik
7ae1430689
#3297 ProcessUtil class using ProcessUtil of Symfony Console
10 years ago
Frederik Bosch
4c58abbb76
Update GitDownloader.php
10 years ago
Frederik Bosch
6edabc629d
Update GitDownloader.php
...
PHP 5.3. compat.
10 years ago
Frederik Bosch
f3b0890cf4
GitDownloader.php: better escaping for Windows
...
Compability for Windows usernames and passwords. When usernames and passwords contain characters that are rawurlencoded to a string containing a % sign (e.g. @ becomes %40), the procent was replaced with a space. Git can there not authenticate.
10 years ago
François Pluchino
8b5c00bff0
Fix phpdoc
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
3ebc869060
Extract functionality from GitDownloader to make it more reusable
10 years ago
Jordi Boggiano
e0886b94a2
Make Git::cleanEnv static
10 years ago
Jordi Boggiano
77163f66fc
Add support for mirrors in composer repos
11 years ago
Jordi Boggiano
6e16d53def
Also use rawurlencode in git downloader, refs #2859
11 years ago
Jordi Boggiano
5d4900e79d
Add --no-checkout flag to avoid checking out the default branch first, fixes #2717
11 years ago
Gennady Feldman
ac78eaa027
Adding ssh protocol support to github-protocols.
11 years ago
Alexander
23a61c5a1d
Fix typo in doc
11 years ago
Jordi Boggiano
bc153ea78b
Clean up var name
11 years ago
Jordi Boggiano
f6666fe601
Update source/dist refs when a commit is recovered from, fixes #1130
11 years ago
Jordi Boggiano
543599cdf7
Fix commit is gone recovery, refs #1130
11 years ago
Chris Smith
d348dd44cd
Fix URL sanitisation regexp being too greedy
11 years ago
Gennady Feldman
a4d7fc138a
Fixing broken unit test.
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
1217a632fe
Adjust function signatures and add type hints, refs #2136
11 years ago
Sascha Egerer
80cebbd4be
Fixed getLocalChanges calls in VCS downloaders to match new function interface
11 years ago
Sascha Egerer
667176d1d0
Add ChangeReport Interface
...
Added a ChangeReport Interface to allow also non VCS-Downloaders to check the status of there package
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
81b2b84112
Clean up git env vars consistently
11 years ago