Merge branch 'jc/directory-attrs-regression-fix'
commitf30366b27a91dbc18328bccf3067cdfad4f0cfbc
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 16:34:04 +0000 (3 09:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 16:34:09 +0000 (3 09:34 -0700)
tree14712f06445837c105ed70a611830f4d8415c025
parent97fefaf6d32d3e8dbb78778f62fcdd980dcf46c7
parentefa5f82540ac0ea75ac185324a78fa230befa050
Merge branch 'jc/directory-attrs-regression-fix'

Fix 1.8.1.x regression that stopped matching "dir" (without
trailing slash) to a directory "dir".

* jc/directory-attrs-regression-fix:
  t: check that a pattern without trailing slash matches a directory
  dir.c::match_pathname(): pay attention to the length of string parameters
  dir.c::match_pathname(): adjust patternlen when shifting pattern
  dir.c::match_basename(): pay attention to the length of string parameters
  attr.c::path_matches(): special case paths that end with a slash
  attr.c::path_matches(): the basename is part of the pathname
attr.c
dir.c