symfony/symfony — pull request #3141 by Zenklys (2012-01-17 22:27:23+00:00)
Title: 2.0 - Suggestion for bin/vendors script.

As noticed in issue [969 of the Symfony-docs](https://github.com/symfony/symfony-docs/pull/969) project, the .git folders of the vendors are taking up an incredible amount of space.

Since history of the git repository is absolutely useless for common developers, my suggestion is to clone the vendors repository with only last commit as history.

This can be done simply by using the `--depth=n` parameter of `git clone`.

Gave it a try locally and it works like a charm. Here are some results.

Before:

$ du -sh vendors
57M	vendor/

After :

$ du -sh vendors
124M	vendor/