fetch-pack: put shallow info in output parameter