ls-tree $di $dir: do not mistakenly recurse into directories
commitb294ed637d3c13cd96ba6f0e464e02e170cc54a6
authorJunio C Hamano <gitster@pobox.com>
Sat, 11 Sep 2010 18:47:09 +0000 (11 11:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 12 Sep 2010 20:52:03 +0000 (12 13:52 -0700)
treef5606a75fdfbfb5c1cdf35def8ccc2ff7ae103ff
parent9904fadfea002edf2ef22e8ec9a978e45d1f540b
ls-tree $di $dir: do not mistakenly recurse into directories

When applying two pathspecs, one of which is named as a prefix to the
other, we mistakenly recursed into the shorter one.

Noticed and fixed by David Reis.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c
t/t3100-ls-tree-restrict.sh