only try to push if the commit succeeded