Changed git_publish script to use previous commit. Almost working.