Might be worth checking that `reference.name` is not `nil` so we don't get an assertion in `git_reflog_read`.