def mirror(cls, url, path, bare=None, branch=None, env=None): # TODO: check clone result clone_repository(url, path, bare=bare, checkout_branch=branch, mirror=True, env=env) jagare = Jagare(path) if bare: update_server_info(jagare.repository) return jagare
def clone(self, path, bare=None, branch=None, mirror=None, env=None): # TODO: check clone result clone_repository(self.repository.path, path, bare=bare, checkout_branch=branch, mirror=mirror, env=env) jagare = Jagare(path) if bare: update_server_info(jagare.repository) return jagare