Commit 27fe6efe by Philip Kelley

Fix git_index sorting with core.ignorecase in git_index_read

parent 52ee071b
...@@ -1359,9 +1359,10 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size) ...@@ -1359,9 +1359,10 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
#undef seek_forward #undef seek_forward
/* force sorting in the vector: the entries are /* Entries are stored case-sensitively on disk. */
* assured to be sorted on the index */ index->entries.sorted = !index->ignore_case;
index->entries.sorted = 1; git_vector_sort(&index->entries);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment