'Init a Git bare Repository on top of a Swift container.
References are managed in info/refs objects by
`SwiftInfoRefsContainer`. The root attribute is the Swift
container that contain the Git bare repository.
:param root: The container which contains the bare repo
:param conf: A ConfigParser object'

def __init__(self, root, conf):

    self.root = root.lstrip('/')
    self.conf = conf
    self.scon = SwiftConnector(self.root, self.conf)
    objects = self.scon.get_container_objects()
    if (not objects):
        raise Exception(('There    is    not    any    GIT    repo    here    :    %s' % self.root))
    objects = [o['name'].split('/')[0] for o in objects]
    if (OBJECTDIR not in objects):
        raise Exception(('This    repository    (%s)    is    not    bare.' % self.root))
    self.bare = True
    self._controldir = self.root
    object_store = SwiftObjectStore(self.scon)
    refs = SwiftInfoRefsContainer(self.scon, object_store)
    BaseRepo.__init__(self, object_store, refs)
