2010/7/25 Jonathan Nieder <jrnie...@gmail.com>: > Hi Frédéric and Duy, > > Frédéric Brière wrote: > >> Despite what git-read-tree(1) says, the syntax for sparse-checkout >> appears to be much stricter for directories, requiring a trailing slash >> and no leading slash. > > Sorry to let this sit for so long.
I'm sorry too for not fixing this for so long :) The defect is known (test "match directories without trailing slash", t1011). The reason is known, as Jonathan pointed out, index does not have "directories". A fix is not easy though. One apparent solution would be reconstruct directories from index, which may be costly especially if it's done inside will_have_skip_worktree(). Another one is to auto append "blal/" for every "blah" found in sparse-checkout file (I remember I found this approach incorrect). The last one is to instruct users to avoid the troublesome form :D -- Duy -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org