commit-reach.c: allow merge_bases_many to handle any repo