Git development
 help / color / mirror / Atom feed
* git branch --track and remote branches with / in the name
@ 2007-06-05  9:04 Gerrit Pape
  2007-06-05 10:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Gerrit Pape @ 2007-06-05  9:04 UTC (permalink / raw)
  To: git

Hi, the --track option to git branch or git checkout doesn't work for
remote branches that contain a slash in the name:

 $ tail -n6 .git/config
 [remote "origin"]
         url = /tmp/repo
         fetch = +refs/heads/*:refs/remotes/origin/*
 [branch "master"]
         remote = origin
         merge = refs/heads/master
 $ git branch -r
   origin/HEAD
   origin/b
   origin/foo/b
   origin/master
 $ git branch --track b origin/b    
 Branch b set up to track remote branch refs/remotes/origin/b.
 $ git branch --track foo/b origin/foo/b
 $ tail -n6 .git/config
 [branch "master"]
         remote = origin
         merge = refs/heads/master
 [branch "b"]
         remote = origin
         merge = refs/heads/b
 $ 

Regards, Gerrit. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-05 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05  9:04 git branch --track and remote branches with / in the name Gerrit Pape
2007-06-05 10:22 ` Junio C Hamano
2007-06-05 11:35   ` Gerrit Pape

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox