def get_current_branch_name():

    repo_check()

    return repo.head.ref.name
Initialize a bare git repository at the given path
dataset/ETHPy150Open kennethreitz/legit/legit/scm.py/get_current_branch_name--crossover with--dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo.init_bare