Commit 55cb1762 authored by Duy Nguyen's avatar Duy Nguyen

submodule clone: propagate extensions.worktreeConfig

If this extension is already enabled on the superproject, the user
likes to use multiple worktrees very much and is already aware of
it. Enable it in submodules too so that when they want to make
secondary submodule worktrees, they will not be worried about enabling
it or migrating per-worktree config away.
parent 347b232b
......@@ -1453,6 +1453,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
/* setup alternateLocation and alternateErrorStrategy in the cloned submodule if needed */
repo_config_copy(&subrepo, the_repository, "submodule.alternateLocation");
repo_config_copy(&subrepo, the_repository, "submodule.alternateErrorStrategy");
repo_config_copy(&subrepo, the_repository, "extensions.worktreeConfig");
repo_clear(&subrepo);
strbuf_release(&sb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment