git-unpack-objects: re-write to read from stdin