Tucker McKnight <tucker@pangolin.lan> | Sun Dec 07 2025
add -C flag in a place where I missed it
67 68 69 70 71 72
// create string of commands saying 'git fetch origin branch:branch' for each branch
const location = eleventyConfig.dir.output + reposPath + "/" + gitRepoName
const fetchCommands = repoConfig.branchesToPull.map(branch => `git -C ${location} fetch origin ${branch}:${branch}`).join('; ')
await exec(`${fetchCommands} && git update-server-info`)
} else {
// If it is not there, do git clone
// todo: does this work if the latest branch is not checked67 68 69 70 71 72
// create string of commands saying 'git fetch origin branch:branch' for each branch
const location = eleventyConfig.dir.output + reposPath + "/" + gitRepoName
const fetchCommands = repoConfig.branchesToPull.map(branch => `git -C ${location} fetch origin ${branch}:${branch}`).join('; ')
await exec(`${fetchCommands} && git -C ${location} update-server-info`)
} else {
// If it is not there, do git clone
// todo: does this work if the latest branch is not checked