Paul Mackerras [off-list ref] writes:
It turns out that this problem crept in when I changed from using git
rev-list --header to git log -z --pretty=raw, and the thing that
causes it is that git rev-list puts a null character after every
commit, while git log only puts a null between commits, i.e., there
isn't a null after the last commit.
Junio, is this behaviour deliberate?
There was a recent message from Linus on the list, stating that
NUL in -z format is inter-record separator, not after-record
terminator.