added a check for an empty commit file.  since git will also cancel in this
case, we don't want to modify the file so just exit.