Check if commit works