git/list[1] front-page[2] threads[3] people[4] search[5] about
 

I want to report a bug/anomaly in Git

From
TSTony Sales <vinux.development@gmail.com>
Date
Jan 11, 2011, 22:22 UTC
Message-ID
<AANLkTimt+U3oo4FaywUr86ArG8d29yWAeVYhpRkBYa_K@mail.gmail.com>

Hi, how do I report a bug/anomaly in git? I have looked on the git website and tried to ask on the git irc on freenode but couldn't post, even after requesting a 'voice'. The bug is that if you happen to create a new remote branch which shares it's name with an existing directory in the top level of the git repository, git then seems to get confused and the: git checkout <branch> - command doesn't switch to that branch or turn tracking on (and seems to think it was created from origin/<branch> rather than from refs/remotes/origin/<branch>), which it does if the branch doesn't share a name with an existing top level directory. This can be rectified by running: git checkout --track -b debian origin/debian - but this confused me for several hours and it was only because I had another repository with the same branch names, but different top level directories where the command worked that it finally dawned on me what the problem was. I then deleted the branch and created a new one with a differnt name and everything worked as expected.

-- 
drbongo

Dig that crazy beat on the drums: <http://vinux.org.uk>  The best is
getting better!
Next: Jeff King
Message 1 of 2 in “I want to report a bug/anomaly in Git”
  1. Tony SalesJan 11, 2011
  2. Jeff KingJan 12, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.