Merge branch 'nd/maint-fix-add-typo-detection'
* nd/maint-fix-add-typo-detection: Revert "excluded_1(): support exclude files in index" unpack-trees: fix sparse checkout's "unable to match directories" unpack-trees: move all skip-worktree checks back to unpack_trees() dir.c: add free_excludes() cache.h: realign and use (1 << x) form for CE_* constants
This commit is contained in:
@ -94,12 +94,20 @@ test_expect_success 'match directories with trailing slash' '
|
||||
test -f sub/added
|
||||
'
|
||||
|
||||
test_expect_failure 'match directories without trailing slash' '
|
||||
echo init.t >.git/info/sparse-checkout &&
|
||||
test_expect_success 'match directories without trailing slash' '
|
||||
echo sub >>.git/info/sparse-checkout &&
|
||||
git read-tree -m -u HEAD &&
|
||||
git ls-files -t >result &&
|
||||
test_cmp expected.swt result &&
|
||||
test_cmp expected.swt-noinit result &&
|
||||
test ! -f init.t &&
|
||||
test -f sub/added
|
||||
'
|
||||
|
||||
test_expect_success 'match directory pattern' '
|
||||
echo "s?b" >>.git/info/sparse-checkout &&
|
||||
git read-tree -m -u HEAD &&
|
||||
git ls-files -t >result &&
|
||||
test_cmp expected.swt-noinit result &&
|
||||
test ! -f init.t &&
|
||||
test -f sub/added
|
||||
'
|
||||
|
Reference in New Issue
Block a user