357 Commits (902a5c32db1795a40b10a8f945e06718e6ccfe66)

Author SHA1 Message Date
Jordi Boggiano f78f6c963d Add note about rawurlencode, refs #5503 8 years ago
Calin Marian a888b082b0 Make urlEncodeAll private 8 years ago
Calin Marian 862a13a17e Urlencode Gitlab project names
Url encode all non alphanumeric characters in project name for GitLabDriver.

If the project name has "." characters in it, which is supported in Gitlab, the Gitlab API will 404 when requesting the branches or tags of the repository. This commit urlencodes all non alphanumeric characters in the project name in requests to the Gitlab API.
8 years ago
Jordi Boggiano 4998ee27b3 Re-use mirror code from the git driver, refs #5384 8 years ago
bohwaz 5674262030 fix typo and bugs on Fossil support 8 years ago
bohwaz 0e26a07a74 Fix: use the right directory for repository file 8 years ago
bohwaz abcbef4a67 Add Fossil support to Composer 8 years ago
Jordi Boggiano 1c4acf3583 Refactor code to use RemoteFilesystem facilities for header parsing, refs #5435 8 years ago
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 9 years ago
Jordi Boggiano 40df5dddee Add secure-http:false option to disable the https default of gitlab driver when using ssh urls, fixes #5254 9 years ago
Jordi Boggiano 35fbf9bc14 Merge branch '1.0' 9 years ago
msarca 9f58c3d6e3 Fixed a bug that prevented interactive authentication to work properly 9 years ago
Jordi Boggiano 4c50136522 Avoid caching nulls, refs #5234 9 years ago
Jordi Boggiano 95e0347917 Merge branch '1.0' 9 years ago
Jordi Boggiano 766c45c047 Add support for local paths pointing directly at the .git folder instead of actual repo, refs #3338 9 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 9 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 9 years ago
Niels Keurentjes 49524bc4ba Centralize secure-http checking 9 years ago
Jordi Boggiano 7e1a23eef7 Add missing use statements 9 years ago
Jordi Boggiano 6f42b9c865 Disable git, svn, http protocols for VCS downloaders, fixes #4968 9 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 10 years ago
Roshan Gautam 4d5e5b3fb5 Remove parasite 10 years ago
Roshan Gautam f870396568 Add oauth2 support for gitlab 10 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
10 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
10 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.
10 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