summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/obs/lib/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/obs/lib/git.py b/scripts/obs/lib/git.py
index 8dc57ae..59500e1 100644
--- a/scripts/obs/lib/git.py
+++ b/scripts/obs/lib/git.py
@@ -36,7 +36,7 @@ def clone(project, fetch=False):
print(f"{project}: cloning {url}")
os.makedirs(lib.config.path_cache, exist_ok=True)
- lib.run_cmd(["git", "clone", url, repo_path])
+ lib.run_cmd(["git", "clone", "--depth", "1", "--no-single-branch", url, repo_path])
lib.run_cmd(["git", "config", "user.name", "Osmocom OBS scripts"],
cwd=repo_path)