From: Joshua Jensen Date: Sat, 24 Sep 2011 20:19:18 GMT Subject: Re: sparse checkout bug? Message-ID: <4E7E3B46.1040002@workspacewhiz.com> In-Reply-To: ----- Original Message ----- From: Jay Soffian Date: 9/24/2011 1:50 PM > I wanted to exclude a single massive directory from a checkout (the > LayoutTests directory from WebKit, which includes 130k files), so I > tried: > > $ git config core.sparsecheckout true > $ echo '*'> .git/info/sparse-checkout > $ echo '!LayoutTests'>> .git/info/sparse-checkout > $ git read-tree -m -u HEAD > > But LayoutTests is not being excluded. I also tried every variation of > including leading/trailing slash and trailing '*'. > This bug has very recently been discussed on the mailing list. As a workaround, use: /* instead of: * You said you have tried this already, but it works for me. The only thing I do in addition is this: /* !LayoutTests/ -Josh