[Libreoffice] [Libreoffice-commits] .: 2 commits - g

Thorsten Behrens thb at documentfoundation.org
Wed Feb 9 08:56:16 PST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110209/3753c299/attachment.pgp>


More information about the LibreOffice mailing list