def submit(remote='origin'): first_submission = not git.remote_branch_exists(remote=remote) git.pull() git.push() if not first_submission: print green('Pull request sucessfully updated.') elif git.hub_installed(): current_branch = git.current_branch() local('hub pull-request -b bmun:master -h %s -f' % current_branch) print green('Pull request successfully issued.') else: print green('Branch successfully pushed. Go to GitHub to issue a pull request.')
def update(): print 'Updating your local branch...' git.pull()