dir: exit before wildcard fall-through if there is no wildcard
commit072a231016e5da347c3a8ff38afb72e7876dd1d7
authorElijah Newren <newren@gmail.com>
Tue, 10 Dec 2019 20:00:23 +0000 (10 20:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2019 20:23:23 +0000 (11 12:23 -0800)
treef3c01dc53048c3c563acdc08b2b86ab76c3736ea
parent2f5d3847d4ed1b6d6c6d2a2e6726cfcda7d361e5
dir: exit before wildcard fall-through if there is no wildcard

The DO_MATCH_LEADING_PATHSPEC had a fall-through case for if there was a
wildcard, noting that we don't yet have enough information to determine
if a further paths under the current directory might match due to the
presence of wildcards.  But if we have no wildcards in our pathspec,
then we shouldn't get to that fall-through case.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
t/t3011-common-prefixes-and-directory-traversal.sh