git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: sparse checkout bug?

From
Joshua Jensen <jjensen@workspacewhiz.com>
Date
Sep 24, 2011, 20:19 UTC
Message-ID
<4E7E3B46.1040002@workspacewhiz.com>
In-Reply-To
<CAG+J_DwRPq69TUMOeqU5O9pv=cHZWEP1VJ1_NRaJv5BSFhF00g@mail.gmail.com>
----- Original Message -----
From: Jay Soffian
Date: 9/24/2011 1:50 PM
Show 12 quoted lines
> 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
Previous: Jay Soffian
Message 2 of 2 in “sparse checkout bug?”
  1. Jay SoffianSep 24, 2011
  2. Joshua JensenSep 24, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.