Merge branch 'en/rename-directory-detection-reboot'
[gitweb.git] / unpack-trees.c
index 79fd97074ec238714634de1c9e6144accdc710f3..3b6c3eeccd00de82606279b99a4a82aa906c199f 100644 (file)
@@ -290,7 +290,7 @@ static void load_gitmodules_file(struct index_state *index,
                if (!state && ce->ce_flags & CE_WT_REMOVE) {
                        repo_read_gitmodules(the_repository);
                } else if (state && (ce->ce_flags & CE_UPDATE)) {
-                       submodule_free();
+                       submodule_free(the_repository);
                        checkout_entry(ce, state, NULL);
                        repo_read_gitmodules(the_repository);
                }