{"thread":{"id":"34705","subject":"Bug with `git branch HEAD` in a 'detached HEAD' state","startedAt":"2013-08-15T20:50:50Z","lastAt":"2013-08-15T20:58:17Z","messageCount":2,"participants":["Benoît Legat","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"225281","messageId":"520D3F2A.5020203@gmail.com","threadId":"34705","inReplyTo":null,"subject":"Bug with `git branch HEAD` in a 'detached HEAD' state","fromName":"Benoît Legat","fromEmail":"benoit.legat@gmail.com","sentAt":"2013-08-15T20:50:50Z","receivedAt":"2013-08-15T20:50:50Z","isPatch":false,"sender":{"key":"benoit.legat@gmail.com","avatar":null},"body":"Hello everyone,\n\nI think I have just found a bug in Git which basically occurs when I run \n`git log HEAD` in a detached HEAD state.\nTo reproduce it, just run\n$ git init\n...\n$ touch tmp\n...\n$ git add tmp\n$ git commit -m \"tmp\"\n...\n$ git checkout <commit_sha>\n...\n$ git branch HEAD\nSegmentation fault (core dumped)\n\nMy version of git is the following\n$ git --version\ngit version 1.8.1.2\n\nIf that helps (and even if it doesn't actually), I'm running ubuntu \n13.04 64-bit.\n\nBenoît Legat\n"},{"id":"225282","messageId":"520D40E9.1020000@googlemail.com","threadId":"34705","inReplyTo":"520D3F2A.5020203@gmail.com","subject":"Re: Bug with `git branch HEAD` in a 'detached HEAD' state","fromName":"Stefan Beller","fromEmail":"stefanbeller@googlemail.com","sentAt":"2013-08-15T20:58:17Z","receivedAt":"2013-08-15T20:58:17Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On 08/15/2013 10:50 PM, Benoît Legat wrote:\n> Hello everyone,\n> \n> I think I have just found a bug in Git which basically occurs when I run\n> `git log HEAD` in a detached HEAD state.\n> To reproduce it, just run\n> $ git init\n> ...\n> $ touch tmp\n> ...\n> $ git add tmp\n> $ git commit -m \"tmp\"\n> ...\n> $ git checkout <commit_sha>\n> ...\n> $ git branch HEAD\n> Segmentation fault (core dumped)\n> \n> My version of git is the following\n> $ git --version\n> git version 1.8.1.2\n> \n> If that helps (and even if it doesn't actually), I'm running ubuntu\n> 13.04 64-bit.\n> \n> Benoît Legat\n> -- \n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n\nThis should be fixed by 8efb8899cfe866dddb3659b9e0a94232161db65e\n(2013-02-23, branch: segfault fixes and validation)\n\nI could reproduce with 1.8.1.2, but not on current master branch.\nIf this annoys you too much, please update your git version. ;)\n\nStefan\n\n"}]}