commit: allow parse_commit* to handle any repo