Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change fetch depth for git clone

Tomas Valenta62895df30900
diff --git a/api-service/session/playground/base.py b/api-service/session/playground/base.py
index 26382cd62..96650e014 100644
--- a/api-service/session/playground/base.py
+++ b/api-service/session/playground/base.py
@@ -52,7 +52,7 @@ class Playground(Session):
):
await self.make_dir(rootdir)
res = await self.run_command(
- f"git clone --single-branch --branch {branch} {repo_address} {rootdir}",
+ f"git clone --single-branch --depth 1 --branch {branch} {repo_address} {rootdir}",
rootdir="/",
)
print("Repo clone result", res)