On 24/10/13 07:05, Andi Kleen wrote:
> Tom de Vries <tom_devr...@mentor.com> writes:
>> ...
>> Can you translate the last sentence into shell/git command(s)?
> 
> It would be far better to just centrally mirror all branches in SVN as 
> standard git branches. Then all these problems wouldn't occur.
> 
> As far as I can tell all the workarounds proposed so far 
> have some nasty drawbacks.
> 

Andi,

AFAIU you're suggesting to do the 'Fetching all branches' approach?

I've tried that now:
...
$ git clone git://gcc.gnu.org/git/gcc.git
$ git svn init -Ttrunk --prefix=svn/ svn+ssh://vr...@gcc.gnu.org/svn/gcc
$ git svn fetch
$ git svn show-ignore >> .git/info/exclude
$ git config remote.origin.fetch 'refs/heads/*:refs/remotes/origin/*'
$ git config --add remote.origin.fetch refs/remotes/*:refs/remotes/svn/*
$ git remote update
...
 * [new branch]      gomp-branch -> svn/gomp-branch
 ! [rejected]        trunk      -> svn/trunk  (non-fast-forward)
...
error: Could not fetch origin
...

It this is what I should expect to see?

Thanks,
- Tom

Reply via email to