This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Official GCC git repository
- From: Andreas Schwab <schwab at suse dot de>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: Rafael Espindola <espindola at google dot com>, 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:43:09 +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> <494F6720.1090101@gnu.org>
Paolo Bonzini <bonzini@gnu.org> writes:
> 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):
The gcc repo is special because it has most of its heads in refs/remotes
instead of refs/heads. A git clone sets the repo up such that only
remote heads matching refs/heads/* are fetched.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."