Fix bug with empty branchname showing up in branch list

74f7c3ac47fe7cddfe82ddf7ef2d55ccb0ac98a5

Tucker McKnight | Tue Jan 20 2026

Fix bug with empty branchname showing up in branch list

This was causing the site to be unable to generate when it tried
to call git commands on a bad branch name.

Also remove a couple of console.log statements that aren't needed
anymore.
main.ts:136
Before
136
137
138
139
140
141
    try {
      code.split('')
    }
    catch (error) {
      console.log(code)
    }
After
136
137
138
139
140
141
    code.split('')
main.ts:317
Before
317
  console.log(flatFilesData.filter(entry => entry.file.includes('njk')))
After
317
src/vcses/git/operations.ts:9
Before
9
10
11
  if (branchName === 'main') {
    console.log(files)
  }
After
9
10
11