upload-pack: fix thinko in common-commit finder code.