This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Official GCC git repository
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Rafael Espindola <espindola at google dot com>
- Cc: Daniel Berlin <dberlin at dberlin dot org>, Ludovic CourtÃs <ludo at gnu dot org>, gcc at gcc dot gnu dot org
- Date: Mon, 22 Dec 2008 11:08:32 +0100
- Subject: Re: Official GCC git repository
- References: <47D7F8DA.8060703@codewiz.org> <4aca3dc20803261138s20fb11famceefc20905543ef@mail.gmail.com> <20080415024917.GA20204@localhost.localdomain> <4aca3dc20804142207s2c050191s3db1ddcf40621b9e@mail.gmail.com> <87bq4bl14v.fsf@gnu.org> <87y77ffeeu.fsf@gnu.org> <4aca3dc20804150942k4e48b540i61653bed10738b69@mail.gmail.com> <jemynvvy8n.fsf@sykes.suse.de> <38a0d8450812210343y7da777ej3c986954195d5a56@mail.gmail.com> <494EBD00.6070802@gnu.org> <38a0d8450812220155y16f73a9dhdad8164b13f54895@mail.gmail.com>
Rafael Espindola wrote:
>> Because the right one should have been
>>
>> $ git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
>>
>
> That is what "git clone" adds, but with that "git branch -r" will not
> list the remote branches.
Uhm, it does here (I don't have a GCC repo, it's another one):
$ git branch -r
mirror/cpp
mirror/exc-handling-alternate-fix
mirror/filesystem
mirror/ipv6
mirror/magritte
mirror/master
mirror/omnibrowser
mirror/opengl
mirror/opengl-nurbs
mirror/poll-for-win32
mirror/pool-resolution
mirror/roe
mirror/sdl
mirror/seaside
mirror/stable-2.1
mirror/stable-2.2
mirror/stable-2.3
mirror/stable-3.0
origin/HEAD
origin/master
origin/stable-2.1
origin/stable-2.2
origin/stable-2.3
origin/stable-3.0
stephen/master
stephen/pool-resolution
stephen/stable-3.0
You can see that it also lists branches for different remotes (with
distributed version control you need many of them, maybe one per
contributor).
Have you tried (after changing the .git/config line for
remote.origin.fetch) doing a "git fetch origin" to refresh the list of
available branches for the origin remote? If it works now, you probably
want to remove the files in .git/refs/remotes/*.
Paolo