Avoid segfault with 'git branch' when the HEAD is detached
commit45e2b6140147d7a8b2cd68399e4d52d5d8d7b5be
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 18 Feb 2009 18:14:59 +0000 (18 19:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Feb 2009 18:25:37 +0000 (18 10:25 -0800)
treee66190700463bfaa2d287f3f631d04402d5d1f3b
parent209d336ae3923f2c1783a42b12fca50f3bee0802
Avoid segfault with 'git branch' when the HEAD is detached

A recent addition to the ref_item struct was not taken care of, leading
to a segmentation fault when accessing the (uninitialized) "dest" member.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c