]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/worktree.c
Merge branch 'sl/worktree-sparse'
[thirdparty/git.git] / builtin / worktree.c
index 2931cd0230a4bbc0179f0a8093b1e535c3a99c57..5a9cf076ad2b52c9163bf356b4557f54285e764d 100644 (file)
@@ -1407,5 +1407,9 @@ int cmd_worktree(int ac, const char **av, const char *prefix)
                prefix = "";
 
        ac = parse_options(ac, av, prefix, options, git_worktree_usage, 0);
+
+       prepare_repo_settings(the_repository);
+       the_repository->settings.command_requires_full_index = 0;
+
        return fn(ac, av, prefix);
 }