187 Commits (c41df325d837b898da4aaea14a9c9a09e1db2bb2)

Author SHA1 Message Date
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
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 10 years ago
Jordi Boggiano 6e16d53def Also use rawurlencode in git downloader, refs #2859 10 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
Jordi Boggiano f79c4e4309 Detect safe_mode and output correct error, closes #2006 11 years ago
Jordi Boggiano 7b6f0ab047 Code cleanups, enforce url for https, refs #2009 11 years ago
Stéphane Klein 42119dde6b Use github protocols setting for push urls 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 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 b38db73611 Clean up rogue git env vars in case this is running in a git hook, refs #1832 11 years ago
Jordi Boggiano 343d4effaa Fix usage of GitDownloader with relative paths, fixes #1843 11 years ago
Jordi Boggiano 3fd883a489 Set cwd instead of using cd in GitDownloader, refs #1832 11 years ago
Jordi Boggiano 2ec75f298d Remove useless output in verbose mode 11 years ago
Jordi Boggiano d81740ab7d Fix authorization/authentication merge, fixes #1684 11 years ago
Jordi Boggiano c9f0e458a2 Merge remote-tracking branch 'machee/gitUserPassNonGithub'
Conflicts:
	src/Composer/Downloader/GitDownloader.php
11 years ago
Jordi Boggiano f06c0cb580 Code reorgs and make bool values real booleans, refs #1637 11 years ago
Ricard Clau 2a2bb6aad6 remove unnecessary else 11 years ago
Ricard Clau 56f4625ec8 check first if there are changes 12 years ago
Ricard Clau 48ac383599 initial steps with new config value, implementation of discard changes for git and svn 12 years ago
Jordi Boggiano 04c6670f0c Detect invalid ssh URLs, fixes #1124 12 years ago
Jordi Boggiano 18973ed0b9 Do not check for changes if there is no vcs dir
In case the package is in a broken state we do not want to show diffs from the main project
12 years ago
Igor Wiedler 4959c2bdc6 Replace references of a11n with a12n where appropriate
Authorization => Authentication.
12 years ago
Jordi Boggiano a7cc5f187f Always reset stash change, refs #1254 12 years ago
Jordi Boggiano b8a408883c Reset state after applying stash, fixes #1254 12 years ago
Jordi Boggiano bebd1ce9c7 Always check for OAuth token in git config, fixes #1243 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago
Jordi Boggiano a28d53d4c0 Add missing v before checkout branches when needed, refs #1164 12 years ago
Jordi Boggiano 3b01d26d67 Swap user credentials for an OAuth token from GitHub 12 years ago
Jordi Boggiano f752b29fc6 Always make sure we are on the right branch 12 years ago
Jordi Boggiano 110044c3ea Fix up create-project command 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 55bff36be1 Avoid displaying passwords in git exceptions, fixes #1199 12 years ago
Jordi Boggiano 84ba1cc098 Fix typo 12 years ago
Jordi Boggiano 3a9c5b3678 Remove dead break statements 12 years ago
Jordi Boggiano 0a549efd0e Allow interactive resets or stash/apply cycles when updating dirty packages instead of failing hard 12 years ago
Mark Achee 5ed5f1314b Capture user/pass from 'git remote' when updating non github repo 12 years ago
Mark Achee 6f689f8926 Look for Auth failed anywhere in errorOutput 12 years ago
Mark Achee ac2fed29a4 Store http auth creds by domain only 12 years ago
Mark Achee 9d03dc5a89 Attempt user/pass authentication for git repos not on github 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 ef1f8a605f Fix file modes 12 years ago
Jordi Boggiano 4d84f62cd9 Improve consistency and formatting of verbose output for update/install 12 years ago
Jordi Boggiano 1aed88003f Merge remote-tracking branch 'digitalkaoz/issue_801'
Conflicts:
	src/Composer/Downloader/VcsDownloader.php
12 years ago
Jordi Boggiano 209d3ebfc4 Show detailed changes in verbose mode, refs #842 12 years ago
Jordi Boggiano 5b4c6f6296 Merge remote-tracking branch 'fixe/status-command'
Conflicts:
	src/Composer/Console/Application.php
12 years ago
Tiago Ribeiro aba2ab2212 Added status command to display local changes to packages 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 656feda837 Revert previous change, use GIT_ASKPASS env var instead 12 years ago
Jordi Boggiano 4ee1ff46a8 Try ssh before http auth, and make sure ssh fails fast if no login is possible 12 years ago
Robert Schönthal 68d80e162a fixes #801 show logs in --verbose mode for source packages 12 years ago
Jordi Boggiano 54054365e0 Add some comments 12 years ago
Jordi Boggiano 73a865bf2a Fix tests 12 years ago
Jordi Boggiano 77f6b9e05b Recover from invalid references by taking the parent commit (by date) 12 years ago
Jordi Boggiano 4bbb168d44 Remove BC code 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Martin Hasoň c8d110aa72 Imporoved exception message for GitDownloader (various protocols for github) 12 years ago
Jordi Boggiano c2933028e8 Make sure github driver is used for all github urls 12 years ago
Jordi Boggiano a9fe883827 Use https fallback for github private repos if ssh protocol fails and we can ask the user's password 12 years ago
Jordi Boggiano ed8aa8322a Do not prevent updates if untracked files are present 12 years ago
Jordi Boggiano e364494286 Add BC for the composer remote 12 years ago
Jordi Boggiano 047fa0b553 Add a composer remote that is used by composer so it does not take over the origin one anymore 12 years ago
Jordi Boggiano 6f8031ac90 Fix error reporting for missing git process 12 years ago
Nami-Doc 66efa343a9 and again. 12 years ago
Nami-Doc 66cd1aad8a Update src/Composer/Downloader/GitDownloader.php 12 years ago
Nami-Doc d245acff83 github online editor is a nice idea, but... 12 years ago