fix(head_commit_msg): wrong condition fixed now