浏览代码

[Bug-fix] Fix error caused by executing Repo.clone_from twice (#1015)

Co-authored-by: xuxiang <xuxiang@aliyun.com>
xuxiang 1 年之前
父节点
当前提交
e719b5bac3
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      embedchain/loaders/github.py

+ 0 - 1
embedchain/loaders/github.py

@@ -85,7 +85,6 @@ class GithubLoader(BaseLoader):
                 logging.info("Fetch completed.")
                 logging.info("Fetch completed.")
             else:
             else:
                 logging.info("Cloning repository...")
                 logging.info("Cloning repository...")
-                Repo.clone_from(repo_url, local_path)
                 repo = Repo.clone_from(repo_url, local_path)
                 repo = Repo.clone_from(repo_url, local_path)
                 logging.info("Clone completed.")
                 logging.info("Clone completed.")
             return repo.head.commit.tree
             return repo.head.commit.tree