fast-import: fix segfault in store_tree()
commit2668d692eb1af63097628447f2e0c783b1a45e2e
authorMaxim Bublis <satori@yandex-team.ru>
Fri, 29 Aug 2014 11:53:37 +0000 (29 15:53 +0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2014 17:31:14 +0000 (29 10:31 -0700)
tree941bfb5a89e5a0b21c797d560eb804272130434c
parent8d30d8a89aa9bf8dfb477cb127af58448bbe9b96
fast-import: fix segfault in store_tree()

Branch tree is NULLified by filedelete command if we are trying
to delete root tree. Add sanity check and use load_tree() in that case.

Signed-off-by: Maxim Bublis <satori@yandex-team.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
t/t9300-fast-import.sh