fetch-pack: check for shallow if depth given