Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
submodule: remove redundant check for the_index.initialized
author
René Scharfe
<rene.scharfe@lsrfire.ath.cx>
Sun, 9 Jun 2013 16:33:45 +0000
(18:33 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 9 Jun 2013 20:46:45 +0000
(13:46 -0700)
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>
submodule.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
26f8f32
)
diff --git
a/submodule.c
b/submodule.c
index e728025f60dbf7f3df87b7104af6410832ddb653..1821a5b3160bd3a3e60f328b50b56a0208b2df9c 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-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++)