def smart_pull():

    repo_check()

    branch = get_current_branch_name()

    fetch()

    return smart_merge('{0}/{1}'.format(remote.name, branch))
git log --merges origin/master..master
dataset/ETHPy150Open kennethreitz/legit/legit/scm.py/smart_pull