Fix return value of git.commit

The rest of the function returns either True or False.
git would return an error code 0 in this case, which corresponds to True here.