cherry-pick: make sure all input objects are commits