commit: prepare logmsg_reencode to handle arbitrary repositories