diff options
| author | Alex <8340441+alexgmin@users.noreply.github.com> | 2025-06-12 09:25:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 09:25:49 +0200 |
| commit | 5afbcb075cc46f36b47bc72ba63993ba1ac93468 (patch) | |
| tree | 0b1c34a6ea6b714abeb0930f916f749516030c09 /docs | |
| parent | 0907b3209ce0c189426184c5f6045626f908f78a (diff) | |
Speed up initial docs generation by setting the git clone depth to 1. (#2093)
* Speed up initial docs cloning
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/management/commands/update_docs.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/management/commands/update_docs.py b/docs/management/commands/update_docs.py index 8d6e053a..785a406f 100644 --- a/docs/management/commands/update_docs.py +++ b/docs/management/commands/update_docs.py @@ -358,7 +358,17 @@ class Command(BaseCommand): os.chdir(cwd) else: subprocess.check_call( - ["git", "clone", "--branch", branch, repo, str(destdir), quiet], + [ + "git", + "clone", + "--depth", + "1", + "--branch", + branch, + repo, + str(destdir), + quiet, + ], stderr=sys.stdout, ) return True |
