Jordi Boggiano
1e6854455c
Merge pull request #6644 from codekandis/feature/util-filesystem-copy-separation
...
Introduces a new method `copy()`.
2017-09-09 12:57:28 +02:00
Jordi Boggiano
97b22ad387
Merge pull request #6608 from kthbit/local-fossil
...
Teach FossilDriver to work with local fossil repository files
2017-09-09 12:22:25 +02:00
Christian Ramelow
39d8104897
Introduces a new method `copy()`.
...
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
2017-08-31 20:19:43 +02:00
Jordi Boggiano
d9885d5b3b
Merge branch '1.5'
2017-08-21 09:16:59 +02:00
Jordi Boggiano
9fd4f22ba2
Also ignore dir change prompt in list command
2017-08-21 09:16:54 +02:00
Jordi Boggiano
d932b17c08
Merge branch '1.5'
2017-08-21 09:14:15 +02:00
Jordi Boggiano
d352cc97f7
Do not prompt for dir change on create-project, fixes #6617
2017-08-21 09:13:08 +02:00
Jordi Boggiano
79360da184
Merge branch '1.5'
2017-08-18 14:05:07 +02:00
Jordi Boggiano
a144b5e7ed
Fix GitLab endless loop thanks to API bug, fixes #6615
2017-08-18 14:04:53 +02:00
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.
2017-08-14 10:56:02 -05:00
kthbit
927d3dda89
Teach FossilDriver to work with urls pointing to local repository.fossil files, and not just the local checkout directories.
2017-08-12 11:31:57 -05:00
kthbit
72a66ad9d2
Do not assume we are on Linux and have head, tail, and awk commands available. Instead, parse the output in PHP.
2017-08-12 08:50:12 -05:00
Jordi Boggiano
aff9c72d16
Merge branch '1.5'
2017-08-09 16:02:51 +02:00
Jordi Boggiano
a16867e2c2
CS
2017-08-09 16:02:45 +02:00
Helmut Januschka
320af80ad3
fix tag/branch collection 💣
2017-08-09 16:01:59 +02:00
Jordi Boggiano
0f94dcd848
Fix composer global config handling
2017-08-08 18:40:15 +02:00
David Zuelke
a4d84f15ca
use COMPOSER env var if present for ancestor path search
2017-08-08 18:40:12 +02:00
David Zuelke
4f7b6a3a54
use Factory::getComposerFile in ConfigCommand
2017-08-08 18:40:07 +02:00
Jordi Boggiano
4ea017d1ce
Merge pull request #6595 from dzuelke/cwdup_composer_fix
...
Fix 1.5.0 ancestor dir composer.json search not using COMPOSER env var
2017-08-08 18:29:31 +02:00
Jordi Boggiano
c1bbb750c4
Fix composer global config handling
2017-08-08 18:29:20 +02:00
David Zuelke
b0da7db3af
use COMPOSER env var if present for ancestor path search
2017-08-08 18:08:46 +02:00
David Zuelke
ae7c076a7c
use Factory::getComposerFile in ConfigCommand
2017-08-08 18:04:11 +02:00
Jordi Boggiano
97d09a9b77
Make github driver code more robust
2017-08-08 15:56:14 +02:00
Jordi Boggiano
c89f6338c2
CS tweaks, refs #6592
2017-08-08 10:11:35 +02:00
Jordi Boggiano
6fd504ef41
Add per_page to do less pagination, refs #6592
2017-08-08 10:05:30 +02:00
Jordi Boggiano
086b750b76
Merge remote-tracking branch 'hjanuschka/gitlab_paging'
2017-08-08 10:03:28 +02:00
Jordi Boggiano
c52e8e5656
Update comment
2017-08-08 09:39:31 +02:00
Helmut Januschka
be1f675992
GitlabDriver V4 Paging
...
V4 of gitlab api requires paging in tags/branches
2017-08-07 21:18:46 +02:00
Jordi Boggiano
b07be842a0
Remove feature-branches option as it is misnamed and duplicates the non-feature-branches option, refs #6475
2017-08-07 18:14:04 +02:00
Jordi Boggiano
acdb7638a8
Warn about require-dev not being ignored when an update --no-dev fails to resolve dependencies, fixes #6575
2017-08-07 16:32:13 +02:00
Jordi Boggiano
a3c15d06e4
Merge pull request #6568 from ktomk/patch-windows-bin-proxy-stubs
...
mute first cd in win proxy stub for sh shell, fixes #6567
2017-08-07 15:17:39 +02:00
Jordi Boggiano
6832eacb01
Update GitLab API usage to v4, fixes #6453
2017-08-07 13:13:24 +02:00
Jordi Boggiano
ec2722f879
Add ability to call composer from within subdirectories of a project, fixes #6426
2017-08-07 11:48:12 +02:00
Jordi Boggiano
8e20fffda5
Merge pull request #6548 from ivanpepelko/master
...
Added $_SERVER['USER'] as possible value for <vendor>
2017-08-07 10:58:26 +02:00
Jordi Boggiano
65d49bf811
Merge branch '1.4'
2017-08-07 10:04:46 +02:00
Jordi Boggiano
d2b102ecb9
Merge remote-tracking branch 'svenmuennich/pr/fix-require-command' into 1.4
2017-08-07 09:25:24 +02:00
Jordi Boggiano
23ab57c311
Merge branch '1.4'
2017-08-06 17:21:58 +02:00
Jordi Boggiano
bf940fb21b
Fix exclude-from-classmap when a package is installed as a symlink, fixes #6397
2017-08-06 17:21:04 +02:00
Jordi Boggiano
9afbddab6b
Only update dist references when one existed already, fixes #6363
2017-08-06 16:54:17 +02:00
Patrick Pokatilo
57ed58346a
Be strict and return non-zero exit code for outdated packages when showing all
2017-08-06 15:39:04 +02:00
Sergey Shcherbin
0863b51e7b
Changed date time format to RFC_3399 in VcsDriver
2017-08-06 12:40:38 +02:00
Sergey Shcherbin
f7e0504d38
Changed date format to DATE_RFC3399 for packages with git/hg repositories
2017-08-06 12:40:32 +02:00
Denis Brumann
2df1a69287
Improve IDE autocompletion
...
According to type 2nd constructor-argument `$reasonData` can either be a Link or a PackageInterface. IDEs like PhpStorm won't be able to provide autocompletion since both classes are from a different namespace.
In order to provide better autocompletion for `$reasonData` and by extension `$this->reasonData` the use statements should be included or the type hint should use the fully qualified class name.
For the same reason I added the docblock on the protected method `formatePackagesUnique()`.
2017-08-04 13:00:24 +02:00
Tom Klingenberg
1bc5163d34
mute first cd in win proxy stub for sh shell, fixes #6567
...
in the sh script, the first cd command did output the directory it cd'ed
into did output the path itself.
fix for me is to redirect it's standard output to /dev/null
using git bash on a windows 10 box.
w/o this fix, the workaround is to invoke the .bat file which is created
as well (but this is not so handy as a non windows user for me).
2017-07-27 00:47:43 +02:00
Jordi Boggiano
58bbcf7d92
Backport #6312 to 1.4
2017-07-20 11:54:45 +02:00
Ivan Pepelko
877bad7933
Added $_SERVER['USER'] as possible value for <vendor> part of package name.
2017-07-12 20:00:33 +02:00
Jordi Boggiano
17b7387c37
Merge branch '1.4'
2017-07-06 09:56:17 +02:00
Jordi Boggiano
81f65b7a2a
Fix exclude-from-classmap being ignored when cwd has the wrong case on case insensitive filesystems
2017-07-06 09:53:33 +02:00
Jordi Boggiano
47bc2fa51a
Fix exclude-from-classmap being ignored when generating on-the-fly class loader, fixes #6503
2017-07-06 09:51:25 +02:00
Jordi Boggiano
34dbde3873
Merge branch '1.4'
2017-07-03 17:00:48 +02:00