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

Re: git branch case insensitivity (Possible bug)

From
Andreas Ericsson <ae@op5.se>
Date
Jan 9, 2013, 15:52 UTC
Message-ID
<50ED925B.2060402@op5.se>
In-Reply-To
<CAL+iW28LdnNiho4KksLX_S_-+bKX+77GPJ0zqQfkz4JpBJRskw@mail.gmail.com>
On 01/09/2013 04:46 PM, Alexander Gallego wrote:
Show 25 quoted lines
> Hello,
> 
> Here is a pastebin where I've reproduced the steps on a clean git repo.
> 
> http://pastebin.com/0vQZEat0
> 
> 
> 
> Brief description of the problem:
> 
> 
> 
> 1.Basically one creates a local branch call it 'imp_fix' (branch off
> master --> this doesn't matter)
> 2.One does work, commit, etc
> 3.One rebases imp_fix with master via: (inside imp_fix) git rebase master
> 4.One checks out master via: git checkout master
> 5.One merges an incorrect name "imp_Fix" (notice the capital F)
> 6.The expected output is that git would say, silly you --> that branch
> does not exist.
> 7. Instead it merges (what I think is incorrectly) imp_fix.
> 
> 
> Kindly let me know if I can provide more details.
> 

Are you using Mac OSX? Are you using the HFS+ filesystem shipped with it? Did you use the filesystem's default settings rather than reinstall your system with sensible settings?

If you said "yes" to all of the above, this is a filesystem "feature", courtesy of (cr)Apple, and you're screwed.

You can work around it by running "git pack-refs" every time you create a branch or a tag though.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Alexander GallegoNext: Alexander Gallego
Message 2 of 5 in “git branch case insensitivity (Possible bug)”
  1. Alexander GallegoJan 9, 2013
  2. Andreas EricssonJan 9, 2013
  3. Alexander GallegoJan 9, 2013
  4. Johannes SixtJan 9, 2013
  5. Joshua JensenJan 9, 2013

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.