521 Commits (3fa7a6cb5104cc2235a767ee7b2df1475c4763a0)

Author SHA1 Message Date
Jordi Boggiano e0051a4652 Update tests 11 years ago
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 11 years ago
Jordi Boggiano 1a50f74c4c Improve reporting of github rate limiting errors, fixes #2183 11 years ago
Jordi Boggiano bd345c3b43 Add IO to proc executor in a few more places to get more debug info out 11 years ago
Jordi Boggiano ab709107e5 Fix detection of git bitbucket repos with incorrect URLs, fixes #2095 11 years ago
Christoph 8c3a84d9fd fixed very evil 'tip' tag oversight in bitbucket driver 11 years ago
Christoph 6406e0d3b7 fixed Bitbucket's broken API 11 years ago
Jordi Boggiano f79c4e4309 Detect safe_mode and output correct error, closes #2006 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Justin Rovang 60e95aed76 Added realpath to VcsDriver constructor
See https://github.com/composer/composer/pull/1828
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 5267bafa2c Retry fetching composer.json files twice since github returns 404s at random at the moment
@bhuga confirmed it is the best approach until github finds a fix. /cc @gillesruppert enjoy whatever your bet wins you
11 years ago
Andrey Utkin 28c219311c Rename module-path to package-path 11 years ago
Andrey Utkin 9022b0ae38 Default module path to empty string 11 years ago
Andrey Utkin 340e960614 Allow svn repositories to reside deeper than module root 11 years ago
Jordi Boggiano 259a25344d Use the api to get file contents instead of raw.github.com
raw.github does not like the access_token query param
12 years ago
Jordi Boggiano 15e9c3d101 Show proper error message when a git bitbucket repo is loaded as hg repo, refs composer/packagist#294 12 years ago
Jordi Boggiano 17a5bdf162 Normalize github URLs generated by the GitHubDriver, fixes #1551 12 years ago
Jordi Boggiano 432955e0ae Fix github url escaping, raw.github.com doesnt like escaped slashes 12 years ago
Jordi Boggiano 5b24a48827 Allow disabling svn branches/tags, fixes composer/satis#43 12 years ago
Jordi Boggiano 04c6670f0c Detect invalid ssh URLs, fixes #1124 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Chris Smith 120f52c632 Generate private zipball urls for private repositories 12 years ago
Christoph cebd43e735 fixed detection of inactive branches in hg 12 years ago
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 12 years ago
Jordi Boggiano 326fcbcab7 Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923 12 years ago
Igor Wiedler 4959c2bdc6 Replace references of a11n with a12n where appropriate
Authorization => Authentication.
12 years ago
Jordi Boggiano 1682532b80 Update code to use new github archive URLs 12 years ago
Jordi Boggiano 2b06503027 SvnDriver fixes 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 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 bf5f34a114 Merge remote-tracking branch '1stvamp/github-tokens-from-git-config' 12 years ago
Jordi Boggiano 3116c979d3 Fix undefined var, fixes #1235 12 years ago
Wes Mason 5fb0403276 Use process executor instead of exec to run git config 12 years ago
Wes Mason 1442c1e026 Damnable tabs! 12 years ago
Wes Mason 2cb07dd2fe Allow use of Github OAuth2 token stored in git config 12 years ago
Jordi Boggiano 0a3097c569 Merge remote-tracking branch 'bboer/feature/svn-alternative-structures'
Conflicts:
	src/Composer/Repository/Vcs/GitHubDriver.php
12 years ago
Jordi Boggiano 5051e7a0a2 Only try to authorize when fetching the repo info, not subsequent calls, refs #423 12 years ago
Jordi Boggiano 32282e7461 Add hostname to the OAuth app name 12 years ago
Jordi Boggiano a9811c4e40 Store and reload the github token to/from the config 12 years ago
Jordi Boggiano 3b01d26d67 Swap user credentials for an OAuth token from GitHub 12 years ago
Thomas Adam 1bd5d88b02 quick workaround for Github API limit 12 years ago
Jordi Boggiano fde3477563 Report issues in HgDriver as well 12 years ago
Jordi Boggiano 08670e7666 Report errors properly when git driver fails to write in the cache, refs #482 12 years ago
Jordi Boggiano e188f69a0f Merge remote-tracking branch 'origin/master' 12 years ago
Jordi Boggiano 4998bab944 Show warning if the svn binary is missing 12 years ago
Zsolt Szeberenyi 5201564c0f Added support for hg bookmarks 12 years ago
Joseph Bielawski 4772db1460 Add missing `use` in HgDriver
Closes #1165
12 years ago
Jordi Boggiano 6bd7ca0230 Fix typos and simplify code 12 years ago
Jordi Boggiano 35245eb817 Add support for local urls and better error reporting to HgDriver 12 years ago
bboer 00361e0087 Fixed tests 12 years ago
bboer d1a452b00b Made repoConfig available for the VcsDriver to be able to provide additional configuration options easily. 12 years ago
Jordi Boggiano 781e0d4f55 Add detection of gitolite user for git repos 12 years ago
bboer 93628c42d8 Add support for alternative structures 12 years ago
Jordi Boggiano f08c748658 Fix tests, fix handling of branches with slashes in GitDriver, fixes #935 12 years ago
Jordi Boggiano 997ef763b4 urlencode() github calls for safety, refs #935 12 years ago
Jordi Boggiano 518984b70d Output error if a local filesystem VCS repo points to a non-existing dir 12 years ago
Sebastiaan Stok 9270904765 fixed issue #992 - branch name not properly escaped 12 years ago
Jordi Boggiano 67b846f4e9 Fix undefined variable in svn driver 12 years ago
Robert Schönthal 0cd453449b minor changes to JsonFile::parseJson for Drivers 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 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
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano a06ebdd8ef Add caching to svn metadata 12 years ago
Jordi Boggiano 3aeb6a8f2d Minor robustness fix 12 years ago
Jordi Boggiano 740d3aa1e3 Generate source urls with labels and not identifiers 12 years ago
Jordi Boggiano 2257d0b550 Guess issues/source support info for github packages 12 years ago
Jordi Boggiano d21032ace5 CS fixes 12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Christophe Coevoet c2d3c0509c Fixed the check for local git repositories 12 years ago
Christophe Coevoet 4404c5f287 Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"
This reverts commit b5eededbe9, reversing
changes made to 799a478f2a.

This change was wrong as the GitDriver was then telling it supports
all local URIs even when they are not git repositories.
12 years ago
Ercan Özkaya ca217bd48f Add support for file:// URIs to GitDriver 12 years ago
Jordi Boggiano ba9676e0f2 Add caching for metadata in github driver 12 years ago
Jordi Boggiano c2933028e8 Make sure github driver is used for all github urls 12 years ago
Jordi Boggiano 7bfe031768 VcsDrivers now send proper originUrl for authentication 12 years ago
Jordi Boggiano 58276d0a52 Warn the user but do not fail hard when a repo can not be synced 12 years ago
Jordi Boggiano b0b3e17a37 Report errors when a git repo can not be synced up 12 years ago
Jordi Boggiano b3164de813 Fix tests 12 years ago
Jerome Tamarelle 610f15a768 Fix unit tests for VcsRepository 12 years ago
Jerome Tamarelle f0ea097134 Remove umask 12 years ago
Jerome Tamarelle 8b408449f6 Create ~/.composer/cache.hg directory if not exists 12 years ago
Jerome Tamarelle 23ef8a419a Fix var scope in HgDriver 12 years ago
Jérôme Tamarelle d200481037 Fix tmp dir for HgDriver 12 years ago
Jerome Tamarelle cc6e1397b2 Fix var scope 12 years ago
Jerome Tamarelle da823f5f19 Store vcs repositories in composer home to prevent permission issues 12 years ago
Jerome Tamarelle 949728f812 Remove redundant __contruct from VcsDriver implementations and move init code to initialize method 12 years ago
Jerome Tamarelle 017ebabcb5 Pass composer configuration to VcsDriver 12 years ago
Jerome Tamarelle d489d2aa3c Store cached git repositories in user HOME to avoid file permission issues 12 years ago
Jordi Boggiano 273e0f777b Fix branch extraction, fixes #565 12 years ago
Jordi Boggiano 6f8031ac90 Fix error reporting for missing git process 12 years ago
Nami-Doc 1dba604ba1 Update src/Composer/Repository/Vcs/GitDriver.php 12 years ago
Nami-Doc 2c58dbf3a1 better message if git isn't found 12 years ago
Holger Rüprich 9e2c523faa Function proc_open doesn't accept a scheme for the current working directory, therefore stripped 'file://' for local repositories. 12 years ago
Jordi Boggiano 1cdae66f8f Fix up git downloader and git driver commands 12 years ago
Jordi Boggiano 219c31ed0c Fix git driver updating 12 years ago
Jordi Boggiano 9828472b9e Improve reliability of GitDriver, refs #485 12 years ago
Jordi Boggiano 2844a5673d Use refs API since it is more stable than the branches API with force-pushes, fixes #514 12 years ago
Jordi Boggiano 1fe24a3837 Add support for github URLs in git driver 12 years ago
Jordi Boggiano 6d5b4d606c Add warning in verbose mode if drivers can not be used because of missing openssl 12 years ago
Jordi Boggiano 7a28a2d83a Add support for new GitHub API 12 years ago
Jordi Boggiano 7285536737 Fix exception handling 12 years ago
Jordi Boggiano 5a7abfd84f Remove code duplication in Svn classes 12 years ago
Jordi Boggiano cd2e5bf2e0 Make SvnDriver::supports less greedy and more realistic 12 years ago
Jordi Boggiano 30d4080014 Support windows local paths 12 years ago
Jordi Boggiano 8fb9c4bf3b Svn related coding style/consistency fixes and minor improvements 12 years ago
Jordi Boggiano ab9fc59d30 Add missing license headers 12 years ago
till 434f10f2d7 * more cs fixes 12 years ago
till c6653f0711 * fix up CS suggestions from stof/seldaek 12 years ago
Till Klampaeckel af8d4212bb Merge pull request #3 from toastedghost/svn-auth-reloaded-imp
Improve 'getTags()' and 'getBranches()'
12 years ago
Flo 80bb040468 Improve 'getTags()' and 'getBranches()' 12 years ago
Beau Simensen a6366be5a6 Handle auth challenge in SvnDriver supports. 12 years ago
till 059bde1adb * refactored with Composer\Util\Svn::doAuthDance() 12 years ago
till c6566825ad Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded 12 years ago
till 17f90f56eb * move helper functions to util class 12 years ago
Mateusz Heleniak 2a9e8350b0 fixed GitDriver - set correct working directory for cli commands 12 years ago
till 8f96786693 Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded 12 years ago
till 6f364a85b3 * do not use getSvnCommand (since we are not in object context)
* run non interacive instead of piping output to /dev/null
12 years ago
till c0ec8f16f9 * fixSvnUrl()
* extend regex to match more possible svn hosts
12 years ago
till 6d1cdb3e45 * fixSvnUrl(): to prefix absolute paths with file:// 12 years ago
Beau Simensen 38680998ed Remove the RemoteFilesystem factory and document GitHubDriver->GitDriver fallback. 12 years ago
till 5fdd09104f resolve conflict 12 years ago
till a1e1a8c7d7 * use askConfirmation() instead 12 years ago
till 244cc2a8c2 hide password input 12 years ago
till 96298a33dc catch all failures 12 years ago
Beau Simensen 1e9cb6bac8 Use factory name instead of generator. 12 years ago
Beau Simensen 340ac49d87 Change `callback` to `callable` 12 years ago
Beau Simensen 6efbc7d531 Enhanced GitHub API/Private Repository support 12 years ago
till 8d80969f26 trim input 12 years ago
till 4c2da57140 make static 12 years ago
till c78d9ffece more inline documentation 12 years ago
till 4da56ea617 explain non-interactive 12 years ago
till f8d8ccfedc * in interactive mode: display error message to the user when authorization fails 12 years ago
till a3363a8560 * SvnDriver::$useCache: false by default
* setting is adjust in 'interactive' mode when auth fails
12 years ago
till 061d91b4a8 whitespace 12 years ago
till 1f03d37a89 * only 'ask' the user if the session is interactive 12 years ago
till a8287118ed * work on no-auth-cache 'creation' 12 years ago
Jordi Boggiano 6c9f1f6f5b Merge pull request #416 from DonMartio/master
Missing slash permits version evaluation.
12 years ago
DonMartio b74773053b Missing slash prevents version evaluation. 12 years ago
Jordi Boggiano 3e22084ea4 Overhaul VcsDrivers, introduce TransportException for remote filesystem errors 12 years ago
till 978d4c145d * more output 12 years ago
till 59c1a7ff15 * when an auth failure is detected and 'auth' is not present, we ask for credentials
* ... and repeat
12 years ago
till 44470da804 * do svnCommand() in execute() to be able to restart the dance in case it failed 12 years ago
till a3e0a0805c * always run non-interactive 12 years ago
till 907db48bb5 * wrap execution of commands into local method 12 years ago
till 99eb18d0ff * rename var from $composer to $output (for consistency) 12 years ago
till 3f665e8bbb * method to gather if this session is 'interactive' or 'non interactive' 12 years ago
till d1482bfa3c * refactor svn command 'creation' into a single method: getSvnCommand() 12 years ago
till 6417a86651 * fix docblocks 12 years ago
till adfac9e34b escape arguments 13 years ago
till 9ecbc5176e remove isset() 13 years ago
till 0ecb710282 * add my credentials into every svn command 13 years ago
till b30f8078e4 * avoid notice 13 years ago
till 4db4d6720b correct my typo 13 years ago
till ba8ccb1955 trailing space 13 years ago
till 275d1c9969 * added a method to return the credential string for the svn command 13 years ago
till e18a4f7d31 detect if credentials are in the url 13 years ago
Jordi Boggiano d03fb4804c Fix local repo detection 13 years ago
Jordi Boggiano 773338a688 Fixes for SVN support, fixes #172 13 years ago
Jordi Boggiano c0b18bddb9 Bugfixes in the local git repos handling 13 years ago
Per Bernhardt 9a17899608 Although the tag "tip" does not provide a valid package version (see VersionParser), the implementation of HgDriver::getSource uses tip as the prefered label for the branch that tip is currently on.
This is not a problem at first hand because you can install a new package correctly with "tip" as source reference.

The problem is that any new revision on that branch won't lead to a new package, because the package will always refer to the same reference "tip".

Therefore you cannot update your project to the new version with "composer update".
13 years ago
Jordi Boggiano 32157a3904 Fix local git repo handling in GitDriver 13 years ago
Jordi Boggiano e2199b2b03 Fixed automatic date parsing of versions 13 years ago
Jordi Boggiano a28fa790be Fix regex 13 years ago
Jordi Boggiano fa8cb14073 Simplify check 13 years ago
Jordi Boggiano f152fe723d Allow local file system git repos & do not restrict to valid http* urls 13 years ago
François Pluchino 953f0992f7 Merge callback method of FileDownloader and VcsDriver
Required corrections added
13 years ago
François Pluchino f5d90e1340 Download Dist Package when the info is defined in root composer file 13 years ago
François Pluchino a0afb88d5d Fix bug on authorization of file download for the private repositories 13 years ago
Brian Clozel 23d85f1900 fix typo 13 years ago
Brian Clozel 33a0ba69de fix issue #251 - Using $this not in object context 13 years ago
Jordi Boggiano 702d415472 Fix usage of the ProcessExecutor 13 years ago
digitalkaoz 627deab51c fixed #230 13 years ago
Jordi Boggiano e218b811e0 Convert static Process into an executor that can be injected 13 years ago
Jordi Boggiano 434c9ecdeb Cleanups of IOInterface 13 years ago
Jordi Boggiano 6492118f29 Merge remote-tracking branch 'francoispluchino/master'
Conflicts:
	src/Composer/Repository/Vcs/GitDriver.php
	src/Composer/Repository/Vcs/HgDriver.php
	src/Composer/Repository/Vcs/SvnDriver.php
13 years ago
Jordi Boggiano 6cfed52aae Merge remote-tracking branch 'digitalkaoz/process' 13 years ago
François Pluchino 03f5eee3fa Fix some improvements 13 years ago
François Pluchino 541285022d Replace CURL with copy() and file_get_contents() 13 years ago
François Pluchino a5fb4abb36 Fix some improvements 13 years ago
François Pluchino 7888ec5313 Add Authentification in FileDownloader 13 years ago
François Pluchino a10f92aafe Convert Wrapper class to ConsoleIO class 13 years ago
François Pluchino f65b34860f Merge branch 'test'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/Vcs/HgBitbucketDriver.php
13 years ago
François Pluchino 9af46ad800 Add Helper Wrapper 13 years ago
Hugo Hamon 09f0ba6604 [Repository] removed unused local $match variable from HgBitbucketDriver::supports() method. 13 years ago
Hugo Hamon 70d7ab43ee [Repository] removed unused local $match variable from GitHubDriver::supports() method. 13 years ago
Hugo Hamon 7842149a51 [Repository] removed unused local $match variable from GitBitbucketDriver::supports() method. 13 years ago
François Pluchino 86070a8b6e Replace getHttpSupport() to getScheme() 13 years ago
François Pluchino 9b0e50cdc2 Restore the old regex 13 years ago
François Pluchino 013d145bcd Add InputInterface and OutputInterface 13 years ago
François Pluchino fa793649fa Add a VcsDriver abstract class.
All XxxDriver extends this abstract class now.
13 years ago
Jordi Boggiano 126c57d07c Fix notice 13 years ago
digitalkaoz 897ff9126d seperate class for Process, using this one all over the place 13 years ago
digitalkaoz a15567cea6 make use of process component fixes #105 13 years ago
Per Bernhardt df5da58b87 Made HgDriver work on Ubuntu 13 years ago
root 399a406018 Fixed notices for edge cases. 13 years ago
Per Bernhardt 2fc49aa88b Stop hg from parsing project's repository information while installing dependencies from source (HgDownloader) or initializing a VcsRepository (HgDriver). 13 years ago
Per Bernhardt d78548cbf9 Added mercurial's "default" branch as a valid dev version (same as master / trunk). 13 years ago
Per Bernhardt f74dafc08c Fixed root identifier: Use global hash instead of local revision 13 years ago
Matthias Pigulla ebbc807de0 Fix whitespaces and add strict return code checking 13 years ago
Matthias Pigulla 8ab60b7030 Still did not get it right 13 years ago
Matthias Pigulla f24164dc16 forgot this when testing 13 years ago
Matthias Pigulla 7cdb8b6b3b Some changes as suggested in the pr 13 years ago
Matthias Pigulla 2fc8e06d81 hg repos must not be hosted somewhere in particular, but detection may become expensive.
Additionally, suppress warnings and support file://-local repos
13 years ago
Jordi Boggiano 139de0f79d Fix handling of git repos with no tag, fixes #146 13 years ago
Jordi Boggiano 1277277ec6 Fix CS 13 years ago
Jordi Boggiano 8df7eb0475 Add SvnDriver for the VcsRepository 13 years ago
Jordi Boggiano e6710e311c Merge remote-tracking branch 'webfactory/mercurial-support' 13 years ago
Jordi Boggiano 1fd9174c0d Fix auto-date parsing in GitDriver 13 years ago
Jordi Boggiano b350dda0fe Skip GitHub driver if openssl is disabled 13 years ago
Per Bernhardt bf21dfeb31 Added drivers for bitbucket (hg and git) 13 years ago
Per Bernhardt 38198a5f36 Fixed blank lines. 13 years ago
Per Bernhardt b0d2897af3 Fixed unused variables. 13 years ago
Per Bernhardt 3e5fd85768 Fixed CS and unused variables 13 years ago
Per Bernhardt ee4d4ee3fa Added HgDriver for the VcsRepository 13 years ago
Jordi Boggiano f2ab4d08e5 Fetch default HEAD branch from remote 13 years ago
Jordi Boggiano b6537324ef Change to GitHub API v3 and fetch default branch 13 years ago
Jordi Boggiano 4c2e8596aa Add VCS Repository and Git + GitHub drivers 13 years ago