[scripts] commit-to-changelog fails if git fails