Paolo Bonzini <bonz...@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, sch...@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."