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

2013-08-15 Thread Benoît Legat
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

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

2013-08-15 Thread Stefan Beller
On 08/15/2013 10:50 PM, Benoît Legat wrote: 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