openstack_git_repo.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:giftwrap 作者: openstack 项目源码 文件源码
def clone(self, outdir):
        LOG.debug("Cloning '%s' to '%s'", self.url, outdir)
        kwargs = {'recursive': True}
        if self._depth:
            LOG.debug("Cloning with depth=%d", self._depth)
            kwargs['depth'] = self._depth
        self._repo = Repo.clone_from(self.url, outdir, **kwargs)
        git = self._repo.git
        git.checkout(self.branch)
        self._invalidate_attrs()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号