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

Bug with `git branch HEAD` in a 'detached HEAD' state

From
BLBenoît Legat <benoit.legat@gmail.com>
Date
Aug 15, 2013, 20:50 UTC
Message-ID
<520D3F2A.5020203@gmail.com>
Hello everyone,

I think I have just found a bug in Git which basically occurs when I run `git log HEAD` in a detached HEAD state. To reproduce it, just run $ git init ... $ touch tmp ... $ git add tmp $ git commit -m "tmp" ... $ git checkout <commit_sha> ... $ git branch HEAD Segmentation fault (core dumped)

My version of git is the following $ git --version git version 1.8.1.2

If that helps (and even if it doesn't actually), I'm running ubuntu 13.04 64-bit.

Benoît Legat
Next: Stefan Beller
Message 1 of 2 in “Bug with `git branch HEAD` in a 'detached HEAD' state”
  1. Benoît LegatAug 15, 2013
  2. Stefan BellerAug 15, 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.