Fixed warnings in git after Index delayed write

TBR: @ussuri

Fixed #1515.