Check repo when the buffer is save.