[Libreoffice] bin/g clone now possible

Jan Holesovsky kendy at suse.cz
Tue Nov 9 03:49:45 PST 2010


Hi,

I have updated the bin/g script so that it is now possible to use it for
cloning the repos.  This might be particularly useful when you want to
have your branch in a separate location, but use your main repo as the
reference to save your inet traffic.

Let's say you have your 'master' repo in /local/libreoffice/master,
like:

cd /local/libreoffice
git clone ssh://git.freedesktop.org/git/libreoffice/build master
[...]

and you want to have the branch in /local/libreoffice/libreoffice-3-3.
Then you do:

cd /local/libreoffice
git clone ssh://git.freedesktop.org/git/libreoffice/build \
    libreoffice-3-3
cd libreoffice-3-3
git checkout -b libreoffice-3-3 origin/libreoffice-3-3
bin/g clone --reference /local/libreoffice/master/clone/@REPO@ \
      ssh://git.freedesktop.org/git/libreoffice/@REPO@
bin/g checkout -b libreoffice-3-3 origin/libreoffice-3-3

This will save you quite some time that you'd spend cloning the full
repos.

HTH,
Kendy



More information about the LibreOffice mailing list