Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

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

xuxiange719b5bac39f
diff --git a/embedchain/loaders/github.py b/embedchain/loaders/github.py
index fcb6af87c..7c54a59c8 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