Browse Source

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

Co-authored-by: xuxiang <xuxiang@aliyun.com>
xuxiang 1 năm trước cách đây
mục cha
commit
e719b5bac3
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      embedchain/loaders/github.py

+ 0 - 1
embedchain/loaders/github.py

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