git branch --track and remote branches with / in the name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. 
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux