I'm confused, isn't this supposed to be an empty file at this point, because otherwise we'd still write into it when we logAllRefUpdates to false because the log file exists.

Can we put a better assertion about the starting value of nrOfReflogs before we start making changes?