This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Git mirror: asan branch
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: Jason Merrill <jason at redhat dot com>, Thomas Schwinge <thomas at codesourcery dot com>, <gcc at gcc dot gnu dot org>, <dnovillo at google dot com>, Andreas Schwab <schwab at linux-m68k dot org>, <tobias at grosser dot es>
- Date: Tue, 29 Oct 2013 17:28:40 +0100
- Subject: Re: Git mirror: asan branch
- Authentication-results: sourceware.org; auth=none
- References: <87ip0sn8mn dot fsf at kepler dot schwinge dot homeip dot net> <87li5oa9na dot fsf at igel dot home> <87a9m4asaf dot fsf at schwinge dot name> <51D45762 dot 9020300 at redhat dot com> <20130703165605 dot 13970 dot 78968 at sourceware dot org> <87ppuya3c1 dot fsf at schwinge dot name> <5267F15A dot 10507 at mentor dot com> <87txg7s1gv dot fsf at tassilo dot jf dot intel dot com>
On 24/10/13 07:05, Andi Kleen wrote:
> Tom de Vries <Tom_deVries@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://vries@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