Re: [PATCH 2/9] sparse-checkout: create 'init' subcommand
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Sep 11, 2019, 14:27 UTC
- Message-ID
- <7949295b-cda3-fe86-967d-4c070dbd2d5c@gmail.com>
- In-Reply-To
- <CABPp-BEmwSwg4tgJg6nVG8a3Hpn_g-=ZjApZF4EiJO+qVgu4uw@mail.gmail.com>
On 8/23/2019 7:02 PM, Elijah Newren wrote:
Show 16 quoted lines
> On Tue, Aug 20, 2019 at 8:13 AM Derrick Stolee via GitGitGadget > <gitgitgadget@gmail.com> wrote: >> >> From: Derrick Stolee <dstolee@microsoft.com> >> >> Getting started with a sparse-checkout file can be daunting. Help >> users start their sparse enlistment using 'git sparse-checkout init'. >> This will set 'core.sparseCheckout=true' in their config, write >> an initial set of patterns to the sparse-checkout file, and update >> their working directory. >> >> Using 'git read-tree' to clear directories does not work cleanly >> on Windows, so manually delete directories that are tracked by Git >> before running read-tree. > > Is that a bug in read-tree that needs to be fixed?
Just to follow up on this: it turns out that this is NOT a bug in read-tree, but rather a side-effect of our custom "core.gvfs" config setting. In the virtualized world, we didn't want Git to hard-delete a folder just because we marked everything sparse.
By removing that option from my environment, the deletions work as expected.
Thanks, -Stolee