Kath Young
fbb9d20c33
Adjusted config name to be more descriptive, added documentation
6 years ago
Jordi Boggiano
b89720b52a
Merge branch 'master' into 2.0
6 years ago
Jordi Boggiano
02ceb74151
Tweak --no-cache option to be available globally and to not break VCS drivers relying on it, refs #7880 , refs #6650
6 years ago
Kath Young
3d1e0e79cc
Allow for no-api for Github to be a composer configuration as well as repo specific
6 years ago
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
6 years ago
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
6 years ago
Jordi Boggiano
11752864eb
Merge pull request #7735 from glaubinix/t/bitbucket-v1-API-deprecation
...
Bitbucket: switch to v2 API
6 years ago
Stephan Vock
819f487b38
Bitbucket: switch to v2 API
6 years ago
Stephan Vock
896d801a30
Fix: Bitbucket getChangeDate throws exception for branches containing a slash
6 years ago
Jordi Boggiano
95840a0ab9
Remove useless curly braces around svn args
6 years ago
Jordi Boggiano
734735c691
Merge pull request #7574 from seferov/patch-1
...
Remove github API request retries as it is not needed anymore
6 years ago
Pierre du Plessis
33341130a9
Fix typo in variable name in GitHubDriver
6 years ago
Jordi Boggiano
bf125295df
Fix escaping of URLs in Perforce and Subversion drivers
6 years ago
Farhad Safarov
4014c914ab
remove Github 404 retries
6 years ago
Jordi Boggiano
e718f34ba4
Properly detect rate limit errors on github before outputting messages, fixes #6621
6 years ago
Jordi Boggiano
ff59bbdab0
CS fixer
6 years ago
Jonas Renaudot
1a725d5e1f
Add support for authentication with mercurial repositories.
6 years ago
Jordi Boggiano
ea78712822
Merge branch '1.6'
7 years ago
Edwin Rodríguez
9dc6222288
Allow using fossil dependency in a fossil repository, fixes #7125 , closes #7126
7 years ago
Jordi Boggiano
35ebb8b93f
Merge branch '1.6'
7 years ago
Markus Staab
af3783b5f4
properly cache when a branch in a certain revision does not contain a composer.json
...
this prevents requesting/trying to get the composer.json over and over again even if no commits happend
Closes #7156
7 years ago
Markus Staab
9bee2ca28e
make sure we only cache resources which contain a svn revision
...
like we do in the VCS driver.
Closes #7158
7 years ago
Jordi Boggiano
2bd34c0534
Merge branch '1.6'
7 years ago
Markus Staab
71d058b97b
refactored "svn --version" calls into a single place, closes #7152
...
this saves a lot of process-spawning as we re-use the result of a process started once.
7 years ago
Gabriel Caruso
f722f952e7
Fix misspelling
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
7 years ago
Jordi Boggiano
1933532ec5
Fix github authentication request, fixes #5767
7 years ago
Jordi Boggiano
c8aea719b1
CS fixes
7 years ago
Jordi Boggiano
0a9abeef88
Merge branch '1.5'
7 years ago
Jordi Boggiano
4c8c574b6c
Fix regex, refs #6895
7 years ago
Renoir Boulanger
9f723ba381
Support GitLab repositories w/ port over HTTPs
...
When we have self-hosted GitLab, over HTTPs, on a different port.
rel composer/composer#6894
7 years ago
Jordi Boggiano
6256e17149
Merge branch '1.5'
7 years ago
Jordi Boggiano
94a1f16c96
Fix scheme in public gitlab URLs, refs #6683
7 years ago
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
7 years ago
Jordi Boggiano
a8df30c09b
Merge branch '1.5'
7 years ago
Mikk Tendermann
2a89d37651
fix gitlab not telling visibilty if user is not logged in
7 years ago
Jordi Boggiano
97b22ad387
Merge pull request #6608 from kthbit/local-fossil
...
Teach FossilDriver to work with local fossil repository files
7 years ago
Jordi Boggiano
79360da184
Merge branch '1.5'
7 years ago
Jordi Boggiano
a144b5e7ed
Fix GitLab endless loop thanks to API bug, fixes #6615
7 years ago
kthbit
1a30e3fbc1
Don't update local checkout directory if url is pointing to it. Only update the checkout directory if it is controlled by composer.
7 years ago
kthbit
927d3dda89
Teach FossilDriver to work with urls pointing to local repository.fossil files, and not just the local checkout directories.
7 years ago
kthbit
72a66ad9d2
Do not assume we are on Linux and have head, tail, and awk commands available. Instead, parse the output in PHP.
7 years ago
Jordi Boggiano
aff9c72d16
Merge branch '1.5'
7 years ago
Jordi Boggiano
a16867e2c2
CS
7 years ago
Helmut Januschka
320af80ad3
fix tag/branch collection 💣
7 years ago
Jordi Boggiano
97d09a9b77
Make github driver code more robust
7 years ago
Jordi Boggiano
c89f6338c2
CS tweaks, refs #6592
7 years ago
Jordi Boggiano
6fd504ef41
Add per_page to do less pagination, refs #6592
7 years ago
Helmut Januschka
be1f675992
GitlabDriver V4 Paging
...
V4 of gitlab api requires paging in tags/branches
7 years ago
Jordi Boggiano
6832eacb01
Update GitLab API usage to v4, fixes #6453
7 years ago
Jordi Boggiano
34dbde3873
Merge branch '1.4'
7 years ago
Marc Schlatter
3ad5ce6874
Fix hg command to retrieve file content
7 years ago
Sergey Shcherbin
676156e2db
Changed date time format to RFC_3399 in VcsDriver
7 years ago
Martin Hasoň
88ec172bd8
Fix CS
7 years ago
Jordi Boggiano
ce56fc4ab6
Merge pull request #6381 from deeky666/pass-vsc-driver-options
...
Forward GitLab driver options to remote filesystem
7 years ago
Steve Müller
1d29fa04b1
forward GitLab driver options to remote filesystem
8 years ago
Rob Bast
e2eb8f2201
support for gitlab subgroups, closes #6349
8 years ago
Jordi Boggiano
4d16d6b28b
Oops2
8 years ago
Jordi Boggiano
b6778cd7f6
Oops
8 years ago
Jordi Boggiano
be38f7e65d
Ignore headless mercurial branches in bitbucket API, fixes composer/packagist#778
8 years ago
Jordi Boggiano
be201924cd
Revert "Changes the query string parameter `sha` to `ref` to reflect the GitLab API"
...
Fixes #6344 , refs #6198
This reverts commit 8a496cd2a7
.
8 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Jordi Boggiano
ddef9923b0
Merge branch '1.3'
8 years ago
Sjoerd Adema
8a496cd2a7
Changes the query string parameter `sha` to `ref` to reflect the GitLab API
...
Updated the unit test to reflect the change
Fixes #6198
8 years ago
Jordi Boggiano
f200343cf2
Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver
8 years ago
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
8 years ago
Bernhard Froehlich
70314f3570
Fix Repository support for Subversion 1.8.x where the output of svn info
...
has changed.
1.7.22
svn: E170001: Unable to connect to a repository at URL 'https://svswdms02/dashboard '
svn: E170001: OPTIONS of 'https://svswdms02/dashboard ': authorization failed: Could not authenticate to server: rejected Digest challenge (https://svswdms02 )
1.8.17
svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option
svn: E215004: Unable to connect to a repository at URL 'https://svswdms02/dashboard '
svn: E215004: No more credentials or we tried too many times.
Authentication failed
8 years ago
Stefan Grootscholten
3ccaac619b
Refactor the getRepoData method to not throw an Exception
8 years ago
Jordi Boggiano
f3d0e4660d
Fix urlencoding of gitlab dots, fixes #6064
8 years ago
Stefan Grootscholten
4377ba2bcb
Implement changes after review by stof.
...
- Use camelCase variable names.
- Set 3rd argument of http_build_query
- Remove obsolete checks
8 years ago
Stefan Grootscholten
5dbdefdd72
Implement ordering in requesting tags and branches.
...
Update unit test with latest changes.
8 years ago
Stefan Grootscholten
046b1184dc
Change getChangeDate call
...
Use the v2.0 commit resource instead of the v1.0 changeset resource.
8 years ago
Stefan Grootscholten
bea4ec7f88
Some refactoring after testing hg protocol.
...
- Revert deletion of generateSshUrl() as this is needed when falling back on the GitDriver or HgDriver.
- Implement clean way to fallback from BitbucketDriver to GitDriver or HgDriver after previous changes.
- Implement fallback in HgBitbucketDriver like in GitBitbucketDriver.
8 years ago
Stefan Grootscholten
7ae4ed1ec8
Improve fetching single files via bitbucket API.
...
The former implementation used the 'src' endpoint which returned some meta data as well.
This has been replaced with the 'raw' endpoint which does not return the meta data and does not need an extra JSON decode step.
8 years ago
Stefan Grootscholten
d25c483231
Implement Bitbucket API version 2.0 (where applicable).
8 years ago
Pete Akins
95e9ad57d4
Don’t add github specials if there is no composer data
...
This can happen if an identifier doesn’t have a composer.json file (but other identifiers do)
8 years ago
Jordi Boggiano
1bc8b702ca
Fix handling of annotated tags and prefer them over lightweight tags, fixes #5555
8 years ago
Jordi Boggiano
9b0ddcd9dd
Merge pull request #5954 from Golodnyi/master
...
Not actual parameters
8 years ago
Jordi Boggiano
9d3e3ca486
Fix edge case in bitbucket driver
8 years ago
golodnyi
1cced223d8
Not actual parameters
8 years ago
Thomas Flori
7896b1ffab
cache only rendered composer information
...
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori
ec27777341
code improvements as suggested
...
Thanks for your input!
8 years ago
Thomas Flori
d70dfd2df3
revert style changes
8 years ago
Thomas Flori
33d026bb06
fix code style to be PSR-2 conform
...
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
8 years ago
Thomas Flori
597f834ae9
add getFileContent function
...
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.
By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Rafael Kassner
44634a689d
HgDriver does not identify bitbucket mercurial repos correctly
8 years ago
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
8 years ago
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
ianlet
5874132857
return https url of the repository given gitlab project is public
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
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