entry.c: use the right index instead of the_index
commit74cfc0ee1d0b4e386b5a07f8b79fbcece94cdff8
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 13 Aug 2018 16:14:32 +0000 (13 18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 21:14:43 +0000 (13 14:14 -0700)
treed72727b10a63cbd35dd17bec03e3517d6cd9465c
parent68f08b4b235d09a95604c6bc8349208b37a2f41e
entry.c: use the right index instead of the_index

checkout-index.c needs update because if checkout->istate is NULL,
ie_match_stat() will crash. Previously this is ie_match_stat(&the_index, ..)
so it will not crash, but it is not technically correct either.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout-index.c
entry.c