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
12 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
12 years ago
Andrey Utkin
28c219311c
Rename module-path to package-path
12 years ago
Andrey Utkin
9022b0ae38
Default module path to empty string
12 years ago
Andrey Utkin
340e960614
Allow svn repositories to reside deeper than module root
12 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
13 years ago
Jordi Boggiano
740d3aa1e3
Generate source urls with labels and not identifiers
13 years ago
Jordi Boggiano
2257d0b550
Guess issues/source support info for github packages
13 years ago
Jordi Boggiano
d21032ace5
CS fixes
13 years ago
Jordi Boggiano
c440b4594a
More PSR-2 goodness
13 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
13 years ago
Christophe Coevoet
c2d3c0509c
Fixed the check for local git repositories
13 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.
13 years ago
Ercan Özkaya
ca217bd48f
Add support for file:// URIs to GitDriver
13 years ago
Jordi Boggiano
ba9676e0f2
Add caching for metadata in github driver
13 years ago
Jordi Boggiano
c2933028e8
Make sure github driver is used for all github urls
13 years ago
Jordi Boggiano
7bfe031768
VcsDrivers now send proper originUrl for authentication
13 years ago
Jordi Boggiano
58276d0a52
Warn the user but do not fail hard when a repo can not be synced
13 years ago
Jordi Boggiano
b0b3e17a37
Report errors when a git repo can not be synced up
13 years ago
Jordi Boggiano
b3164de813
Fix tests
13 years ago
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
13 years ago
Jerome Tamarelle
f0ea097134
Remove umask
13 years ago
Jerome Tamarelle
8b408449f6
Create ~/.composer/cache.hg directory if not exists
13 years ago
Jerome Tamarelle
23ef8a419a
Fix var scope in HgDriver
13 years ago
Jérôme Tamarelle
d200481037
Fix tmp dir for HgDriver
13 years ago
Jerome Tamarelle
cc6e1397b2
Fix var scope
13 years ago
Jerome Tamarelle
da823f5f19
Store vcs repositories in composer home to prevent permission issues
13 years ago
Jerome Tamarelle
949728f812
Remove redundant __contruct from VcsDriver implementations and move init code to initialize method
13 years ago
Jerome Tamarelle
017ebabcb5
Pass composer configuration to VcsDriver
13 years ago
Jerome Tamarelle
d489d2aa3c
Store cached git repositories in user HOME to avoid file permission issues
13 years ago
Jordi Boggiano
273e0f777b
Fix branch extraction, fixes #565
13 years ago
Jordi Boggiano
6f8031ac90
Fix error reporting for missing git process
13 years ago
Nami-Doc
1dba604ba1
Update src/Composer/Repository/Vcs/GitDriver.php
13 years ago
Nami-Doc
2c58dbf3a1
better message if git isn't found
13 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.
13 years ago
Jordi Boggiano
1cdae66f8f
Fix up git downloader and git driver commands
13 years ago
Jordi Boggiano
219c31ed0c
Fix git driver updating
13 years ago
Jordi Boggiano
9828472b9e
Improve reliability of GitDriver, refs #485
13 years ago
Jordi Boggiano
2844a5673d
Use refs API since it is more stable than the branches API with force-pushes, fixes #514
13 years ago
Jordi Boggiano
1fe24a3837
Add support for github URLs in git driver
13 years ago
Jordi Boggiano
6d5b4d606c
Add warning in verbose mode if drivers can not be used because of missing openssl
13 years ago
Jordi Boggiano
7a28a2d83a
Add support for new GitHub API
13 years ago
Jordi Boggiano
7285536737
Fix exception handling
13 years ago
Jordi Boggiano
5a7abfd84f
Remove code duplication in Svn classes
13 years ago
Jordi Boggiano
cd2e5bf2e0
Make SvnDriver::supports less greedy and more realistic
13 years ago
Jordi Boggiano
30d4080014
Support windows local paths
13 years ago
Jordi Boggiano
8fb9c4bf3b
Svn related coding style/consistency fixes and minor improvements
13 years ago
Jordi Boggiano
ab9fc59d30
Add missing license headers
13 years ago
till
434f10f2d7
* more cs fixes
13 years ago
till
c6653f0711
* fix up CS suggestions from stof/seldaek
13 years ago
Till Klampaeckel
af8d4212bb
Merge pull request #3 from toastedghost/svn-auth-reloaded-imp
...
Improve 'getTags()' and 'getBranches()'
13 years ago
Flo
80bb040468
Improve 'getTags()' and 'getBranches()'
13 years ago