<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    For such a cloned repository, will push be possible? Or is this then
    a read-only repository?<br>
    <br>
    Thanks, Oli<br>
    <br>
    On 11/03/10 18:20, Miklos Vajna wrote:
    <blockquote cite="mid:20101103172021.GO22105@genesis.frugalware.org"
      type="cite">
      <pre wrap="">On Wed, Nov 03, 2010 at 02:10:14PM +0100, Florian Effenberger <a class="moz-txt-link-rfc2396E" href="mailto:floeff@documentfoundation.org">&lt;floeff@documentfoundation.org&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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.
</pre>
      </blockquote>
      <pre wrap="">
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.)
</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <br>
  <BR>
______________________________________________________________________<BR>
This email has been scanned by the MessageLabs Email Security System.<BR>
For more information please visit http://www.messagelabs.com/email <BR>
______________________________________________________________________<BR>
</body>
</html>