mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 19:28:32 +00:00
Fix git_index sorting with core.ignorecase in git_index_read
This commit is contained in:
parent
52ee071b35
commit
27fe6efe85
@ -1359,9 +1359,10 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
|
||||
|
||||
#undef seek_forward
|
||||
|
||||
/* force sorting in the vector: the entries are
|
||||
* assured to be sorted on the index */
|
||||
index->entries.sorted = 1;
|
||||
/* Entries are stored case-sensitively on disk. */
|
||||
index->entries.sorted = !index->ignore_case;
|
||||
git_vector_sort(&index->entries);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user