Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unpack-trees: fix nested sparse-dir search
The iterated search in find_cache_entry() was recently modified to include a loop that searches backwards for a sparse directory entry that matches the given traverse_info and name_entry. However, the string comparison failed to actually concatenate those two strings, so this failed to find a sparse directory when it was not a top-level directory. This caused some errors in rare cases where a 'git checkout' spanned a diff that modified files within the sparse directory entry, but we could not correctly find the entry. Helped-by: Johannes Schindelin <[email protected]> Helped-by: René Scharfe <[email protected]> Signed-off-by: Derrick Stolee <[email protected]>
- Loading branch information