[vlc-devel] RE : [PATCH] - media_list (libvlc api)
davidf+nntp at woaf.net
Sat Nov 29 13:47:14 CET 2008
On 2008-11-28, brezhoneg1 <brezhoneg1 at yahoo.fr> wrote:
> I know using git would be better. But, I still have a bandwidth
> problem (and git clone is far too big). Hopefully, I should solve this
> problem soon.
In an ideal world, what you want is:
$ git clone --depth 1 git://git.videolan.org/vlc.git
Under nornal circumstances this will perform a shallow clone,
however, that will pull multiple branches and tags and end up being
about 100MiB to download (urgh).
So what can be done instead is a bit more manual:
Create a bare repository:
$ mkdir vlc && cd vlc
$ git init
Set up a remote called 'origin' that only tracks the master branch (or
whatever you need) of the remote repository.
$ git remote add -t master origin git://git.videolan.org/vlc.git
Do a shallow fetch of that remote:
$ git fetch --depth 1 origin
Receiving objects: 100% (3776/3776), 12.44 MiB | 840 KiB/s, done
Much better :)
Checkout a local branch:
$ git checkout -b master origin/master
Carry on as normal. In order to update your remotes, use git remote
There are some restrictions on doing a shallow clone, but for producing
patches and rebasing, it is fine. See man git-clone for more details.
More information about the vlc-devel