git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git case-sensitivity bug
@ 2018-05-10 19:46 Cliff
  2018-05-10 20:09 ` Bryan Turner
  0 siblings, 1 reply; 2+ messages in thread
From: Cliff @ 2018-05-10 19:46 UTC (permalink / raw)
  To: git

I believe I have discovered a bug with git tools.

If you create a git branch, you can refer to that branch with
case-insensitive alterations and it will track as the same branch.

If I create branch "test" I cannot then create branch "Test" because
the same name is already used.

However, git commands ARE case-sensitive, causing unspecified behavior!

If you create branch "test" and then run "git checkout Test" and then
run "git branch" it will list the branches "master" and "test" and
NEITHER ONE will be flagged * as the current branch! (It does not list
Test and does not show any branch as being the current branch)

As far as git is concerned... you're not on a branch! But you're
secretly on the "test" branch.

Also, I think this may cause further issues. Switching to "test" tells
me that I am 1 commit behind master, but switching to "Test" gives no
such message, and appears to want me to --set-upstream again, for the
same branch.

This is really bad behavior.

I'm on MacOS so this may be unique to the Mac version of git tools.

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

* Re: Git case-sensitivity bug
  2018-05-10 19:46 Git case-sensitivity bug Cliff
@ 2018-05-10 20:09 ` Bryan Turner
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan Turner @ 2018-05-10 20:09 UTC (permalink / raw)
  To: miliways; +Cc: Git Users

Hey Cliff,

On Thu, May 10, 2018 at 12:46 PM Cliff <miliways@gmail.com> wrote:

> I believe I have discovered a bug with git tools.

> If you create a git branch, you can refer to that branch with
> case-insensitive alterations and it will track as the same branch.

This comes up on the list fairly often on the list. The most recent thread
is here:
https://public-inbox.org/git/d4d8d8208b6a41c380ecf20807763bcf@XCH15-05-02.nw.nos.boeing.com/

The replies to that thread explain the behavior, why it does what it does,
and why it hasn't been changed yet. It happens on case-insensitive macOS
filesystems and on NTFS on Windows.

Hope this helps!
Bryan Turner

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

end of thread, other threads:[~2018-05-10 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 19:46 Git case-sensitivity bug Cliff
2018-05-10 20:09 ` Bryan Turner

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).