You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-dev@apache.org by Jukka Zitting <ju...@gmail.com> on 2008/10/10 16:51:52 UTC

Re: [scm] Making a public git mirror of an Apache project

Hi,

On Mon, Sep 22, 2008 at 5:46 AM, Matthieu Riou <ma...@offthelip.org> wrote:
> So I poked around the git-svn code which was a good occasion to get back to
> perl. The code is a bit dreadful actually. Turns out git-svn fails when it
> uses the do_switch svn function to follow the parent. If you force it to use
> do_update instead, it works nicely. So right now I've deactivated it just by
> hacking git-svn directly with the following patch:
>
> diff --git a/git-svn.perl b/git-svn.perl
> index af8279a..12246eb 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -4274,7 +4274,8 @@ sub can_do_switch {
>                }
>                $pool->clear;
>        }
> -       $can_do_switch;
> +  #$can_do_switch;
> +  ""
>  }
>
> Ugly but effective.

Cool! I'll give it a try this weekend.

BR,

Jukka Zitting

Re: [scm] Making a public git mirror of an Apache project

Posted by Matthieu Riou <ma...@offthelip.org>.
On Mon, Oct 13, 2008 at 2:47 AM, Jukka Zitting <ju...@gmail.com>wrote:

> Hi,
>
> On Fri, Oct 10, 2008 at 4:51 PM, Jukka Zitting <ju...@gmail.com>
> wrote:
> > On Mon, Sep 22, 2008 at 5:46 AM, Matthieu Riou <ma...@offthelip.org>
> wrote:
> >> Ugly but effective.
> >
> > Cool! I'll give it a try this weekend.
>
> It worked without problems. The ODE mirror now contains all tags and
> branches.
>

Sweet! Thanks Jukka!


>
> BR,
>
> Jukka Zitting
>

Re: [scm] Making a public git mirror of an Apache project

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Fri, Oct 10, 2008 at 4:51 PM, Jukka Zitting <ju...@gmail.com> wrote:
> On Mon, Sep 22, 2008 at 5:46 AM, Matthieu Riou <ma...@offthelip.org> wrote:
>> Ugly but effective.
>
> Cool! I'll give it a try this weekend.

It worked without problems. The ODE mirror now contains all tags and branches.

BR,

Jukka Zitting