Skip to content

Speed up getDocs clones with shallow, single-branch fetch#383

Open
gerbsen wants to merge 2 commits into
mainfrom
getdocs-shallow-clone
Open

Speed up getDocs clones with shallow, single-branch fetch#383
gerbsen wants to merge 2 commits into
mainfrom
getdocs-shallow-clone

Conversation

@gerbsen

@gerbsen gerbsen commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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.

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 <noreply@anthropic.com>
Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
@gerbsen
gerbsen force-pushed the getdocs-shallow-clone branch from 7bf240d to 063e9ef Compare July 17, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant