{"version":"2.1.247","anchor":"worktree-sync-writes-the-whole-tree-in-sparse-checkout-repos","canonical_anchor":"worktree-sync-writes-the-whole-tree-in-sparse-checkout-repos","heading":"Worktree sync writes the whole tree in sparse-checkout repositories","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/worktree-sync-writes-the-whole-tree-in-sparse-checkout-repos","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Worktree sync writes the whole tree in sparse-checkout repositories\n\nWorktree sync now writes the complete tree in repositories using sparse checkout.\n\n**What**\n\nThe worktree sync step that writes merged state now forces sparse checkout off for its own git call, so a repository using sparse checkout no longer ends up with only part of the synced state written.\n\n**Details**\n\n- The `read-tree --reset -u` call gains `core.sparseCheckout=false`, `core.sparseCheckoutCone=false` and `index.sparse=false`.\n- Unconditional on that code path; no flag involved.\n\n**Evidence**\n\n`core.sparseCheckoutCone=false`\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}