fix empty commit should not error