gitutils.py 文件源码

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

项目:nokia-deployer 作者: nokia 项目源码 文件源码
def clone(self, raise_for_error=True):
        try:
            git.Repo.clone_from(self.remote_url, self.local_path)
            return True
        except git.GitCommandError as e:
            if e.status == 128 and not raise_for_error:
                return False
            raise


# Safe operations only, can be used without acquiring a lock first.
# Specialized subclasses with more operations defined are built by using one of the lock functions.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号