check previous commit message