Update lib/git/lib.rb use regex to check commit

use a regex to check for a commit message just in case there is a bunch of junk in it

i.e. escape/control or whatever other non letter characters you like