'Return a config stack for this repository.
This stack accesses the configuration for both this repository
itself (.git/config) and the global configuration, which usually
lives in ~/.gitconfig.
:return: `Config` instance for this repository'

def get_config_stack(self):

    from dulwich.config import StackedConfig
    backends = ([self.get_config()] + StackedConfig.default_backends())
    return StackedConfig(backends, writable=backends[0])
