submodule: remove redundant check for the_index.initialized

read_cache already performs the same check and returns immediately if
the cache has already been loaded.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2013-06-09 18:33:45 +02:00 committed by Junio C Hamano
parent 26f8f32a20
commit 467b8fe1bb

View File

@ -603,7 +603,6 @@ int fetch_populated_submodules(const struct argv_array *options,
if (!work_tree)
goto out;
if (!the_index.initialized)
if (read_cache() < 0)
die("index file corrupt");