]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule-config.c
unpack-trees: also allow get_progress() to work on a different index
[thirdparty/git.git] / submodule-config.c
index bd5e14ab20aea2684c889dfe564a667b38ef286f..4d1c92d5826da800360a98e88d577f6f25d27f96 100644 (file)
@@ -635,7 +635,9 @@ static void submodule_cache_check_init(struct repository *repo)
 static void config_from_gitmodules(config_fn_t fn, struct repository *repo, void *data)
 {
        if (repo->worktree) {
-               struct git_config_source config_source = { 0 };
+               struct git_config_source config_source = {
+                       0, .scope = CONFIG_SCOPE_SUBMODULE
+               };
                const struct config_options opts = { 0 };
                struct object_id oid;
                char *file;