>>>>> "Daniel" == Daniel Berlin <[EMAIL PROTECTED]> writes:

Daniel> No, nothing is wrong wit he import, if you want all the remote
Daniel> branches, you have to ask git to get all the remote branches

Daniel> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'

Daniel,

how did you setup the git repository? The branch heads are supposed to
be located under "/refs/heads/" on gcc.gnu.org, not under
"/refs/remotes/", where you generally find the remote references:
those branches aren't supposed to be remote on the master
repository.

If you populate this repository by pushing from another one, the push
command should use "--mirror". Excerpt from the manual:

       --mirror
           Instead of naming each ref to push, specifies that all refs
           under $GIT_DIR/refs/heads/
           and $GIT_DIR/refs/tags/ be mirrored to the remote
           repository. Newly created local refs
           will be pushed to the remote end, locally updated refs will
           be force updated on the
           remote end, and deleted refs will be removed from the
           remote end.

This way, branches will be kept under /refs/heads/, not put under 
/refs/remotes/.

  Sam
-- 
Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/

Reply via email to