object: allow clear_commit_marks_all to handle any repo