Tucker McKnight <tucker@pangolin.lan> | Mon Jan 12 2026
Remove logging/debug lines for build steps Seems to be a problem that happens with a specific git version. Couldn't figure out what the issue was. Also add name of mithril server side rendering branch name to wiki.
44 45 46
}
```
test44 45
}
```
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
const tempDir = `${directories.output.replace("./", "")}${reposPath}${tempDirName}`
const tempDirRepoPath = `${tempDir}/${eleventyConfig.getFilter("slugify")(repoName)}`
await exec(`mkdir ${tempDir}`)
const cloneResult = await exec(`git clone -s ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}.git ${tempDirRepoPath}`)
console.log("clone result awaited")
console.log(cloneResult)
for (let branch of repoConfig.branchesToPull) {
console.log(`in branch ${branch}, ls tempdirrepopath then checkout ${branch}`)
console.log(await exec(`ls -lha ${tempDirRepoPath}`))
// TODO why doesn't git -C checkout work? Says that repo doesn't exist
console.log('pwd is')
console.log(await exec('pwd'))
console.log(`cwd is ${process.cwd()}`)
await exec(`(sleep 1 && cd ${tempDirRepoPath} && sleep 1 && git checkout ${branch})`)
for (let buildStep of repoConfig.buildSteps) {
// Run the command for each step in each branch
console.log(`cding into ${tempDirRepoPath}`)
await exec(`(cd ${tempDirRepoPath} && ${buildStep.command})`)
// Copy the specified folders from the "from" to the "to" dir
await exec(`cp -r ${tempDirRepoPath}/${buildStep.copyFrom} ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}/branches/${eleventyConfig.getFilter("slugify")(branch)}/${buildStep.copyTo}`)108 109 110 111 112 113 114 115 116 117 118
const tempDir = `${directories.output.replace("./", "")}${reposPath}${tempDirName}`
const tempDirRepoPath = `${tempDir}/${eleventyConfig.getFilter("slugify")(repoName)}`
await exec(`mkdir ${tempDir}`)
await exec(`git clone -s ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}.git ${tempDirRepoPath}`)
for (let branch of repoConfig.branchesToPull) {
// TODO why doesn't git -C checkout work? Says that repo doesn't exist
await exec(`(cd ${tempDirRepoPath} && git checkout ${branch})`)
for (let buildStep of repoConfig.buildSteps) {
// Run the command for each step in each branch
await exec(`(cd ${tempDirRepoPath} && ${buildStep.command})`)
// Copy the specified folders from the "from" to the "to" dir
await exec(`cp -r ${tempDirRepoPath}/${buildStep.copyFrom} ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}/branches/${eleventyConfig.getFilter("slugify")(branch)}/${buildStep.copyTo}`)15 16 17 18 19
- Goal: allow users to specify a glob pattern (like `deploy/**`) instead of spelling out every branch name in full in their config file
- [Project page](./projects/branch-globs.md.html)
- [ ] Better Template Readability
- Goal: Do not simply have a bunch of strings as the HTML for the default virtual
template. Maybe look into using mithril for server-side rendering?
- This will also make the code look much less "ewww" for possible new contributors.15 16 17 18 19 20
- Goal: allow users to specify a glob pattern (like `deploy/**`) instead of spelling out every branch name in full in their config file
- [Project page](./projects/branch-globs.md.html)
- [ ] Better Template Readability
- git-branch: `mithril-server-side-rendering`
- Goal: Do not simply have a bunch of strings as the HTML for the default virtual
template. Maybe look into using mithril for server-side rendering?
- This will also make the code look much less "ewww" for possible new contributors.