Before overwriting the destination index, first let's discard its
contents.
Signed-off-by: Felipe Contreras <redacted>
Tested-by: Лежанкин Иван <redacted> wrote:
Reviewed-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
o->src_index = NULL;
ret = check_updates(o) ? (-2) : 0;
- if (o->dst_index)
+ if (o->dst_index) {
+ discard_index(o->dst_index);
*o->dst_index = o->result;
+ }
done:
clear_exclude_list(&el);