From e719b5bac39fd1ba31a03578d8213ac2908872f0 Mon Sep 17 00:00:00 2001 From: xuxiang <418720028@qq.com> Date: Sat, 16 Dec 2023 11:03:07 +0800 Subject: [PATCH] [Bug-fix] Fix error caused by executing Repo.clone_from twice (#1015) Co-authored-by: xuxiang --- embedchain/loaders/github.py | 1 - 1 file changed, 1 deletion(-) diff --git a/embedchain/loaders/github.py b/embedchain/loaders/github.py index fcb6af87..7c54a59c 100644 --- a/embedchain/loaders/github.py +++ b/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