diff options
| -rw-r--r-- | src/index.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c index d4568aaef..c04796875 100644 --- a/src/index.c +++ b/src/index.c @@ -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; } |
