"Heather Lapointe via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Heather Lapointe <alpha@alphaservcomputing.solutions> > > This supports traversal into an actual submodule for read_tree_at. > The logic is blocked on pathspec->recurse_submodules now, What do you mean by "blocked"? Do you mean only that pathspec->recurse_submodules needs to be specified, or do you also mean that no caller specifies pathspec->recurse_submodules now, so this code path is never executed? > but previously hadn't been executed due to all fn() cases > returning early for submodules. What do you mean by "previously hadn't been executed due to..."? At a glance, I would think that this new logic is introduced in this patch, so of course it would never have been previously executed. > + if (repo_submodule_init(subrepo_p, r, submodule_rel_path, null_oid())) I don't think this can be null_oid() here - it has to match the tree from which you constructed submodule_rel_path. (That tree may not be the tree at HEAD.)