From 063e9ef4555c38e45a6d9ee4dff01e8a8a605bb7 Mon Sep 17 00:00:00 2001 From: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com> Date: Fri, 17 Jul 2026 17:02:57 +0200 Subject: [PATCH 1/2] Speed up getDocs clones with shallow, single-branch fetch getDocs.js only needs a snapshot of each upstream repo's docs, but it did a full clone (entire history, all branches). Add --depth 1 and --single-branch so each clone transfers only the latest commit of the default branch, cutting fetch time and bandwidth noticeably for the larger source repositories. Co-Authored-By: Claude Opus 4.8 Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com> --- getDocs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getDocs.js b/getDocs.js index 92e15fae21..6fbf91d323 100755 --- a/getDocs.js +++ b/getDocs.js @@ -14,8 +14,10 @@ const ghUrl = 'https://github.com/' repos.forEach((repo) => { const repoDir = `repo_to_be_edited/${repo.label}` - // Clone the repository - const cloneCommand = `git clone ${ghUrl + repo.repo} ${repoDir}` + // Clone the repository (shallow, single branch — we only need a snapshot of the docs) + const cloneCommand = `git clone --single-branch --depth 1 ${ + ghUrl + repo.repo + } ${repoDir}` execSync(cloneCommand) // Remove git folders From c6f85e2b1d27a00558edb37455d9eb9146b14981 Mon Sep 17 00:00:00 2001 From: gerbsen <1186245+gerbsen@users.noreply.github.com> Date: Mon, 20 Jul 2026 17:33:26 +0200 Subject: [PATCH 2/2] Update getDocs.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Büchse Signed-off-by: gerbsen <1186245+gerbsen@users.noreply.github.com> --- getDocs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getDocs.js b/getDocs.js index 66fde54491..70ae6801f5 100755 --- a/getDocs.js +++ b/getDocs.js @@ -21,7 +21,7 @@ repos.forEach((repo) => { const repoDir = `repo_to_be_edited/${repo.label}` // Clone the repository (shallow, single branch — we only need a snapshot of the docs) - const cloneCommand = `git clone --single-branch --depth 1 ${cloneUrl(repo.repo)} ${repoDir}` + const cloneCommand = `git clone --depth 1 ${cloneUrl(repo.repo)} ${repoDir}` execSync(cloneCommand) // Remove git folders