Corrects logic error in 'git-add-commit' function