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


Michael Meeks wrote:
@@ -143,7 +148,11 @@ for REPO in $DIRS ; do
         HOOKDIR="../../git-hooks"
     fi
 
-    if [ \( -d "$DIR" -a -d "$DIR"/.git \) -o \( "$COMMAND" = "clone" \) ] ; then
+    if [ "$REWRITE_ACCOUNT" != "" ]; then
+       echo "rewrite $DIR/.git/config"
+       sed -i.bak 
"s|git://anongit.freedesktop.org/git/libreoffice/|ssh://$REWRITE_ACCOUNT@git.freedesktop.org/git/libreoffice/|"
 "$DIR/.git/config"
+
+    elif [ \( -d "$DIR" -a -d "$DIR"/.git \) -o \( "$COMMAND" = "clone" \) ] ; then

Hi Michael,

hm, that looks slightly broken - plus, I wonder if that's really a
smooth workflow.

Personally, I use to do this for any repo I want to push from:

./g config remote.origin.pushurl ssh://thorsten@git.freedesktop.org/git/libreoffice/@REPO@

which leaves the pull with the much more hassle-free anongit - 
should we maybe just document this step on the "hackers - Get an
Account" page & be done with it?

Cheers,

-- Thorsten

Attachment: pgpoRVxNP4baY.pgp
Description: PGP signature


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.