fetch-pack: do not stop traversing an already parsed commit