'Create a new bare repository.
:param scon: a `SwiftConnector` instance
:param conf: a ConfigParser object
:return: a `SwiftRepo` instance'

@classmethod
def init_bare(cls, scon, conf):

    scon.create_root()
    for obj in [posixpath.join(OBJECTDIR, PACKDIR), posixpath.join(INFODIR, 'refs')]:
        scon.put_object(obj, BytesIO(''))
    ret = cls(scon.root, conf)
    ret._init_files(True)
    return ret
