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,9 +603,8 @@ 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");
|
||||
if (read_cache() < 0)
|
||||
die("index file corrupt");
|
||||
|
||||
argv_array_push(&argv, "fetch");
|
||||
for (i = 0; i < options->argc; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user