fixed typo on windows instead of window # with '#' will be ignored, and an empty message aborts the commit.