Gabriel Caruso
f722f952e7
Fix misspelling
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
6 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
7 years ago
Rob Bast
e2eb8f2201
support for gitlab subgroups, closes #6349
7 years ago
Jordi Boggiano
4d16d6b28b
Oops2
7 years ago
Jordi Boggiano
b6778cd7f6
Oops
7 years ago
Jordi Boggiano
be38f7e65d
Ignore headless mercurial branches in bitbucket API, fixes composer/packagist#778
7 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
.
7 years ago
Jordi Boggiano
122e422682
CS fixes
7 years ago
Jordi Boggiano
ddef9923b0
Merge branch '1.3'
7 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
7 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
7 years ago
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
7 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
7 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
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
9 years ago
Jordi Boggiano
0b4a9235f4
CS fixes
9 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