'Initialize a default set of named files.'

def _init_files(self, bare):

    from dulwich.config import ConfigFile
    self._put_named_file('description', 'Unnamed    repository')
    f = BytesIO()
    cf = ConfigFile()
    cf.set('core', 'repositoryformatversion', '0')
    if self._determine_file_mode():
        cf.set('core', 'filemode', True)
    else:
        cf.set('core', 'filemode', False)
    cf.set('core', 'bare', bare)
    cf.set('core', 'logallrefupdates', True)
    cf.write_to_file(f)
    self._put_named_file('config', f.getvalue())
    self._put_named_file(os.path.join('info', 'exclude'), '')
