sparse checkout: inhibit empty worktree
commit9e1afb16753d583a696c988d33f45655f81e8f7c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 20 Aug 2009 13:47:13 +0000 (20 20:47 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2009 00:14:42 +0000 (23 17:14 -0700)
tree0ad696855e2031ebd059dc585810ad24605ee859
parentd6b38f61c8125423abdf2b9c10f2187c5fecd80e
sparse checkout: inhibit empty worktree

The way sparse checkout works, users may empty their worktree
completely, because of non-matching sparse-checkout spec, or empty
spec. I believe this is not desired. This patch makes Git refuse to
produce such worktree.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1009-read-tree-sparse-checkout.sh
unpack-trees.c