예제 #1
0
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.')
예제 #2
0
def update():
    print 'Updating your local branch...'
    git.pull()