Git development
 help / color / mirror / Atom feed
* sparse checkout bug?
@ 2011-09-24 19:50 Jay Soffian
  2011-09-24 20:19 ` Joshua Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Jay Soffian @ 2011-09-24 19:50 UTC (permalink / raw)
  To: git

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 '*'.

Simple repro:

git init sparse-test && cd sparse-test &&
touch foo && mkdir bar && touch bar/baz &&
git add foo bar/baz &&
git commit -m initial &&
git config core.sparsecheckout true &&
echo '*' > .git/info/sparse-checkout &&
echo '!bar' >> .git/info/sparse-checkout &&
git read-tree -m -u HEAD &&
ls -1R
foo

bar:
baz

j.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-24 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24 19:50 sparse checkout bug? Jay Soffian
2011-09-24 20:19 ` Joshua Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox