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

Re: Bug: branch checkout is detached if the case doesn't match

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jun 23, 2021, 13:00 UTC
Message-ID
<87wnqk20qv.fsf@evledraar.gmail.com>
In-Reply-To
<YNKeq5mSu3f0A/5I@camp.crustytoothpaste.net>
On Wed, Jun 23 2021, brian m. carlson wrote:
> [...] In the mean time, you may prefer to adopt a naming convention
> for your project branches; for example, even though I use Linux and
> don't have this problem, I always use lowercase, which makes things
> easier for colleagues on other systems (and is also easier to type).

The reported issue is one that doesn't have to do with the naming of the branch itself, but git accepting it due to how the ref backend interacts with the FS.

As noted I've run into e.g. people writing unportable "head.." code, which we happily resolve to "HEAD"., ditto "master", "Master", "MASTER" etc. on OSX.

Previous: Tim Hutt
Message 6 of 6 in “Bug: branch checkout is detached if the case doesn't match”
  1. Tim HuttJun 20, 2021
  2. Ævar Arnfjörð BjarmasonJun 20, 2021
  3. Tim HuttJun 21, 2021
  4. brian m. carlsonJun 23, 2021
  5. Tim HuttJun 23, 2021
  6. Ævar Arnfjörð BjarmasonJun 23, 2021

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.