Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e669c9

Browse files
committed
removed the --min option of the vendor script (closes symfony#83)
1 parent 3944536 commit 9e669c9

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ directory and you're done.
2828
If you have downloaded an archive without the vendors, you must have ``git``
2929
available to install the vendors:
3030

31-
php bin/vendors.php
32-
33-
.. tip::
34-
35-
You can pass the `--min` option if you don't want all the history. This
36-
also makes the installation much faster.
31+
php bin/vendors install
3732

3833
Installation from Git
3934
---------------------
@@ -46,7 +41,7 @@ Run the following commands:
4641
git clone http://github.com/symfony/symfony-standard.git
4742
cd symfony-standard
4843
rm -rf .git
49-
php bin/vendors.php
44+
php bin/vendors install
5045

5146
.. note::
5247

bin/vendors

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ if (!in_array($command = array_shift($argv), array('install', 'update'))) {
3232
die(sprintf("Command \"%s\" does not exist.\n", $command));
3333
}
3434

35-
// Initialization
36-
$cloneOptions = '';
37-
if (in_array('--min', $argv)) {
38-
$cloneOptions = '--depth 1';
39-
}
40-
4135
if (!is_dir($vendorDir)) {
4236
mkdir($vendorDir, 0777, true);
4337
}
@@ -88,7 +82,7 @@ foreach (file($rootDir.'/deps') as $line) {
8882
echo "> Installing/Updating $name\n";
8983

9084
if (!is_dir($installDir)) {
91-
system(sprintf('git clone %s %s %s', $cloneOptions, $url, $installDir));
85+
system(sprintf('git clone %s %s', $url, $installDir));
9286
}
9387

9488
system(sprintf('cd %s && git fetch origin && git reset --hard %s', $installDir, $rev));

0 commit comments

Comments
 (0)