def __init__(self, config):
    self.repo = Repo(config.path)
    self.config = config
    self.current_branch = self.repo.active_branch
    assert (not self.repo.bare), 'Not a Git repository'
def __init__(self, config):
    self.repo = Repo(config.path)
    self.config = config
    self.current_branch = self.repo.active_branch
    assert (not self.repo.bare), 'Not a Git repository'