Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


For such a cloned repository, will push be possible? Or is this then a read-only repository?

Thanks, Oli

On 11/03/10 18:20, Miklos Vajna wrote:
On Wed, Nov 03, 2010 at 02:10:14PM +0100, Florian Effenberger<floeff@documentfoundation.org>  wrote:
I'm no git expert, but if someone comes up with a script, that should be
no problem. We can mid-term also host our own git, but for the moment,
I'd stick with FD.
Mirroring git repos is easy. :)

To do the initial mirroring:

cd /path/to/git
repos="build writer etc."
for i in $repos
do
         git clone --mirror git://anongit.freedesktop.org/git/libreoffice/$i
done

To update them (this could go to a hourly - or similar - cronjob):

cd /path/to/git
for i in *
do
         cd $i.git
         git fetch origin
         git remote prune origin # this is optional but needed to get rid of branches deleted in 
the FD repos
         cd ..
done

Finally, you need to export the /path/to/git dir in your httpd config.
In case you have Apache and you want smart-http (the plain http version
is slooow ;) ), add to the vhost's config:

SetEnv GIT_PROJECT_ROOT /path/to/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/

(man git-clone, man git-fetch, man git-remote and finally man
git-http-backend describes the process in more detail.)


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.