Only commits to git repo if a commit message is given
Fixes bug with passign command line arguments