push: fix segfault when HEAD points nowhere
commit1d2c14df1605a05118524b2382402d689f69d737
authorFraser Tweedale <frase@frase.id.au>
Thu, 31 Jan 2013 12:22:51 +0000 (31 22:22 +1000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Jan 2013 16:09:53 +0000 (31 08:09 -0800)
treef6edee51fadd210a4483ed223bfaf790e5eccbc3
parentf25950f3475e263ed6c8f0797bb058ba6444f85e
push: fix segfault when HEAD points nowhere

After a push of a branch other than the current branch fails in
a no-ff error and if you are still on an unborn branch, the code
recently added to report the failure dereferenced a null pointer
while checking the name of the current branch.

Signed-off-by: Fraser Tweedale <frase@frase.id.au>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c