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