Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions getDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const cloneUrl = (repo) =>
repos.forEach((repo) => {
const repoDir = `repo_to_be_edited/${repo.label}`

// Clone the repository
const cloneCommand = `git clone ${cloneUrl(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 ${cloneUrl(repo.repo)} ${repoDir}`
Comment thread
gerbsen marked this conversation as resolved.
Outdated
execSync(cloneCommand)

// Remove git folders
Expand Down
Loading