submodule: fixup nested submodules after moving the submodule
[gitweb.git] / builtin / submodule--helper.c
index 5551cf19c3f94fe7e57b6d1ea49de103f0ef3cdb..ffdc51f426e3781151c03fcd898cfeb43862e8ea 100644 (file)
@@ -1260,8 +1260,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
                strbuf_reset(&sb);
        }
 
-       /* Connect module worktree and git dir */
-       connect_work_tree_and_git_dir(path, sm_gitdir);
+       connect_work_tree_and_git_dir(path, sm_gitdir, 0);
 
        p = git_pathdup_submodule(path, "config");
        if (!p)