index: Check git_vector_dup error in write_entries If allocating case_sorted.contents fails, git_vector_sort will segfault.