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:
parent
26f8f32a20
commit
467b8fe1bb
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user