499 Commits (002fd39bc6fc28dc79d9e20bf705e53e1f75caab)

Author SHA1 Message Date
Jordi Boggiano f8c3ef4136 Merge remote-tracking branch 'dunlop-lello/master' 8 years ago
Stefan Grootscholten 78fcb5a366 Add support section to composer data for bitbucket repositories. 8 years ago
Phil Lello 7a112b0395 Check headers for missing scopes before asking for new OAuth token
This patch stops the GitHub VCS driver prompting for a new access
token when a repository is deleted/hidden.

Specifically, it checks the X-OAuth-Scopes and X-Accepted-OAuth-Scopes
response headers to see if the scopes on the current request match
those needed by the API call. If they do, the 404 means that the repo
is deleted/hidden, and there's no point asking for a new OAuth token.
8 years ago
Stefan Grootscholten d9fd9fca6b Implement changes after review of stof.
Rename getContents to getContentsWithOAuthCredentials.
Make gitDriver a private property.
8 years ago
Stefan Grootscholten 1084a3927e Implement Bitbucket Util in GitBitbucketDriver. 8 years ago
Stefan Grootscholten 307fd4023b Fetch composer.json using the oauth api. 8 years ago
Jordi Boggiano 8bfb2e8bc2 Add a getter to fetch the repo data from the outside of the github driver 8 years ago
Jordi Boggiano 40df5dddee Add secure-http:false option to disable the https default of gitlab driver when using ssh urls, fixes #5254 8 years ago
Jordi Boggiano 35fbf9bc14 Merge branch '1.0' 8 years ago
msarca 9f58c3d6e3 Fixed a bug that prevented interactive authentication to work properly 8 years ago
Jordi Boggiano 4c50136522 Avoid caching nulls, refs #5234 8 years ago
Jordi Boggiano 95e0347917 Merge branch '1.0' 8 years ago
Jordi Boggiano 766c45c047 Add support for local paths pointing directly at the .git folder instead of actual repo, refs #3338 8 years ago
Jordi Boggiano 2062070be9 Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Niels Keurentjes 49524bc4ba Centralize secure-http checking 8 years ago
Jordi Boggiano 7e1a23eef7 Add missing use statements 8 years ago
Jordi Boggiano 6f42b9c865 Disable git, svn, http protocols for VCS downloaders, fixes #4968 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano 764de14b5e Add caching to bitbucket API requests 9 years ago
Jordi Boggiano 64b0d72183 Add missing git fallback function in gitlab driver 9 years ago
Jordi Boggiano 29312be4df Strict typing fixes 9 years ago
Jordi Boggiano 6d9e04c0e9 Tweak regex usage 9 years ago
Jaapio df92cb09ab extract regex to const. To be able to reuse it 9 years ago
Jaapio b471440ea0 Adds support for gitlab install in subfolder
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jordi Boggiano 020c126c27 Fix CS 9 years ago
Jérôme Tamarelle 4255db9e31 Allows SSH urls for gitlab and detect the scheme
SSH urls uses HTTPS to request the API
9 years ago
Jérôme Tamarelle ac68a721f4 Merge remote-tracking branch 'composer/master' into gitlab
Conflicts:
	doc/04-schema.md
	src/Composer/Util/RemoteFilesystem.php
9 years ago
Jerome TAMARELLE db056b8383 Fix retry authentification on gitlab oauth 9 years ago
Jerome TAMARELLE 211d4632bb Fix compatibility with PHP 5.3 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Jordi Boggiano afd98b74f1 Fix handling of www.github.com in GitHubDriver, fixes composer/packagist#572 9 years ago
Roshan Gautam 98bc4e4483 Gitlab:Use proper fallbacks if archive download is failing 9 years ago
Roshan Gautam 4d5e5b3fb5 Remove parasite 9 years ago
Roshan Gautam f870396568 Add oauth2 support for gitlab 9 years ago
Jérôme Tamarelle c1edfbb65c Add tests on GitLabDriver
Add an interactive prompt for gitlab token

Update doc for gitlab-domains

Add tests on GitLabDriver::supports

Update doc + CS

Optimize branch detection + fix typos

Fix test on GitLab support as it depends on SSL

Remove useless method + fix repository URL containing .git
9 years ago
Jerome TAMARELLE 5fece6ae83 Use Gitlab blob API to retreive composer.json files
Store missing composer.json into the cache

[GitLab] Reduce API calls by caching

Download ZIP archives from gitlab + fix repo URL

Fix cached commit objects
9 years ago
Henrik Bjørnskov 782c6303bc Initial GitLab Driver
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.

Various review changes based on Stof comments.

* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 10 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 10 years ago
David Verholen 2d9401fb13 fix bug in GitDriver::supports for remote repo
for some reason it does not work (in packagist) without the $output param. I don't get any error message here, maybe someone has an idea, why?

Anyway, need this ;)
10 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
brandung GmbH & Co. KG d650f05ddf removed needless output param 10 years ago
davidverholen 50d068b977 + limit git ls-remote to heads
+ escape repo url
10 years ago
davidverholen 80d7ab57ed add check for remote Repository in GitDriver::supports 10 years ago
Jordi Boggiano 2a1a963b00 support bitbucket URLs with plain http 10 years ago
Jordi Boggiano e0291f3a30 Fix parsing of empty git commits, fixes #3565 10 years ago
Jordi Boggiano 5133c3fe9a Merge pull request #3424 from kaktus42/master
return false if local file path does not exist in GitDriver and HgDriver
10 years ago
Jordi Boggiano 2b7b605839 Skip empty time values 10 years ago
kaktus42 116ccdac62 return false if local file path does not exist in GitDriver and HgDriver 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano e61e62908e Merge remote-tracking branch 'frederikbosch/patch-1' 10 years ago
Jordi Boggiano 91ac3e1426 Add support for unixy paths in git/hg local repo urls, closes #3294 10 years ago
frederik d1d40502bf ProcessExecutor::escape 10 years ago
frederik 7ae1430689 #3297 ProcessUtil class using ProcessUtil of Symfony Console 10 years ago
Bastian Hofmann f8023cffdf renamed cache-credentials to svn-cache-credentials 10 years ago
Bastian Hofmann b279dda1c0 Merge branch 'master' of https://github.com/composer/composer 10 years ago
Jordi Boggiano 4d522e40fb Load auth when updating a git repo mirror, fixes #3243 10 years ago
Bastian Hofmann 204fc207fa Moved config option to not save subversion credentials to repository configuration, added documentation. 10 years ago
Jordi Boggiano d5294ef91b Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423 10 years ago
Jordi Boggiano b7402c3b2d Ignore gh-pages branches, fixes #3073 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 89ec322929 Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json' 10 years ago
Jordi Boggiano effacc1185 Do not realpath relative local URLs, fixes #2916 10 years ago
Benjamin Grandfond a21b0f82db Allow SVN to connect with credentials provided with the auth.json file 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 eebffacd9f Use pagination to get tags/branches from the github API 10 years ago
schmkr 8dd6b052ce Updating SvnDriver trunk revision check
Not checking revision of composer.json, but from its parent directory.

See composer/composer#2849
10 years ago
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 10 years ago
Alex Romanenko 5078d7c4fb Fix space in password for git auth 10 years ago
Jordi Boggiano 8e2b1c3e24 Merge pull request #2838 from timroberson/issue-2826
Add auth for private, non-GitHub repos (#2826)
10 years ago
Jordi Boggiano f233383de8 Merge pull request #2834 from vuhl/master
Fixing perforce driver/downloader bugs
10 years ago
Clark Stuth a12c4e2a17 Removed getWindowsFlag and setWindowsFlag methods from Perforce object. 10 years ago
Tim Roberson 1f70148884 Change elseif to if. 10 years ago
Clark Stuth 3a3661a0b3 removing dead code lines and excess comments 10 years ago
Tim Roberson db1e4b7574 Add auth for private, non-GitHub repos (#2826) 10 years ago
Jordi Boggiano c96dedd19c Merge pull request #2268 from schmkr/svnDriver-trunkPath-improvements
Improved the handling of trunkPath
10 years ago
Clark Stuth c11105dd60 Fixing bug not cleaning up workspaces. 10 years ago
Clark Stuth 492539101c got all unit tests passing 10 years ago
Clark Stuth 24dd42267f almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods 10 years ago
Clark Stuth 0f7b078d6c added new dependency to Perforce object, updating some tests. 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
11 years ago
Nils Adermann b808ff5e28 Don't hardcode the URL to an https one either 11 years ago
Nils Adermann edfaf727e5 When using the github driver with no-api don't reset to an ssh url 11 years ago
Jordi Boggiano a612b2affe Merge remote-tracking branch 'naderman/download-failover' 11 years ago
Nils Adermann a80fde97d5 Make the github driver behave like git if "no-api" is specified. 11 years ago
Nils Adermann 35fbe3fd42 Download failover means we can now always try github zip urls for dist 11 years ago
Jordi Boggiano 432ace33d4 Clean up svn environment to fix OSX issues, fixes #2708, refs #2146 11 years ago
Pascal Borreli 2f4df9d459 Fixed typos 11 years ago
Kim Laï Trinh 691f784f92 fix bug introduced in https://github.com/composer/composer/pull/2375 11 years ago
Matthias Pigulla f626f55f41 No need to create hg working copies just to parse tags/branches 11 years ago
Chris Smith a892e6a3bd Pass IO instance to ProcessExecutor for logging 11 years ago
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 11 years ago
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 11 years ago
Gennady Feldman d8dbcab710 Refactoring my code to use a protected function to generate API Url. 11 years ago
Gennady Feldman e78499d28d First working version of GitHub Enterprise API. 11 years ago
Sebastian Schawohl 4198688f54 Change date format when getting log from mercurial
Use rfc3339date format instead of rfc822date to avoid exceptions from
DateTime constructor because of localized dates.

fix #2346
11 years ago
Jordi Boggiano 7f03fad391 Revert "Code cleanup, refs #2316"
This reverts commit 6e3cfb5fea.
11 years ago
Jordi Boggiano 6e3cfb5fea Code cleanup, refs #2316 11 years ago
Jordi Boggiano 7c83e6a04a Merge remote-tracking branch 'GromNaN/git-cache' 11 years ago
Jordi Boggiano ce8b475f4c Minor tweaks to perforce support, refs #2329 11 years ago
Fabian Grutschus a6823d2f9b non-deep check returns allways false 11 years ago
Jordi Boggiano 0fbb4cbd16 CS fixes and renaming a few methods, refs #2184 11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 9a806658d6 Merge remote-tracking branch 'vuhl/master'
Conflicts:
	src/Composer/Factory.php
11 years ago
Jérôme Tamarelle f51aa4fad6 Add local cache for Git repositories 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Marc 30049637dc Set some phpdoc to isLocalUrl 11 years ago
schmkr c4d7347ec5 Fixed a coding style issue
Missing a space between if and (
11 years ago
schmkr 652715f4c2 Improved the handling of trunkPath
- $this->baseUrl is only used if $this->trunkPath === false, otherwise
we will use $this->baseUrl with $this->trunkPath.
- scanning through trunkPath will now look for composer.json file
instead of a path that matches $this->trunkPath, beacuse checking
against the latter failed with deeper trunkPaths
- $this->rootIdentifier is now 'trunk' no matter how deep
$this->trunkPath is (with deeper trunkPaths, the name became something
like "dev-trunk-devel-team-packages-package"
11 years ago
mwhittom 2e737ac439 updated to replace double-quotes with single quotes 11 years ago
mwhittom 8207518e04 Updated to clean up code and rename variables to camelcase 11 years ago
mwhittom 774a55befd Updated to match psr-2 spec, fixed header comments 11 years ago
matt-whittom f737e49aae Fixed issue with downloader assuming repository would be VcsRepository 11 years ago
matt-whittom f3722a46ed Updated comments 11 years ago
matt-whittom dd81449998 Updated to remove vfsStreams (no longer needed by tests)
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom 1019c014e5 using theirs 11 years ago
matt-whittom bab10dd9f8 Added ability to pass p4user and p4password in composer.json 11 years ago
matt-whittom 53d6fcd6d3 using theirs 11 years ago
matt-whittom a5df2851ef Finished cleanup of debug messages. 11 years ago
matt-whittom 43108b4692 Cleanup phase 1
Removed branches - only returning the "master"
11 years ago
matt-whittom 64bda65e11 Updated Perforce driver to use labels
dev checkin, lots of cleanup to do
11 years ago
matt-whittom 36dd7dfea5 Cleaned up perforce code
Checks to see if already logged in to Perforce, and prompts for password if not and P4PASSWD is not set
Checks server url with perforce call
Checks for composer.json file, and returns the contents of the file already retrieved.
11 years ago
matt-whittom 0d061f2530 Added Perforce to Composer 11 years ago
Jordi Boggiano 2bf90b544a Fix parsing of trunk in SvnDriver, fixes composer/satis#88 11 years ago
Jordi Boggiano d017e3f209 Adjust GitDriver tag parsing to resolve to SHAs 11 years ago
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