diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-04-12 23:08:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-14 22:48:01 +0200 |
commit | 4589bca829a2ace58bc98876cccd7dbd2e89f732 (patch) | |
tree | de51de02e3730e05b8689e64519db60b5374806b /ref-filter.c | |
parent | sparse-index: expand_to_path() (diff) | |
download | git-4589bca829a2ace58bc98876cccd7dbd2e89f732.tar.xz git-4589bca829a2ace58bc98876cccd7dbd2e89f732.zip |
name-hash: use expand_to_path()
A sparse-index loads the name-hash data for its entries, including the
sparse-directory entries. If a caller asks for a path that is contained
within a sparse-directory entry, we need to expand to a full index and
recalculate the name hash table before returning the result. Insert
calls to expand_to_path() to protect against this case.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.c')
0 files changed, 0 insertions, 0 deletions