fix: disable sparse checkout cone mode to prevent root file leaks#89
fix: disable sparse checkout cone mode to prevent root file leaks#89
Conversation
Greptile SummaryThis PR fixes a regression in Git 2.37+ where cone mode for sparse checkout became the default, causing root-level files to always be included alongside the specified Confidence Score: 5/5Safe to merge — targeted, minimal fix with no side effects on the wildcard ( The change is small and surgical: one new boolean derived from an already-escaped variable, one conditional config command, and a cosmetic refactor of the array build. The No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "(fix): only disable cone mode for subdir..." | Re-trigger Greptile |
Summary
providerRootDirectoryto include root-level files (e.g.build.gradle.kts,package.json) that can break function buildscore.sparseCheckoutCone falsebefore writing the sparse-checkout patternTest plan
testGenerateCloneCommand*tests pass (pattern*clones everything regardless of cone mode)providerRootDirectoryno longer includes root-level files