def get_active_branch(repo):
    """Returns the active branch of the given local repository.

    Args:
        repo(git.Repo): Git Repo instance

    Returns:
        str: The name of the active branch.
    """

    return repo.active_branch.name