Handle empty commit list