Fix bug with empty branch names in branch name list

754e1bea04a9e9c93b9943f9d6ebe4fe4b02c6e6

Tucker McKnight <tucker@pangolin.lan> | Tue Jan 20 2026

Fix bug with empty branch names in branch name list

(Somehow didn't add this to the previous commit.)
src/repos.ts:23
Before
22
23
24
25
26
27
  }

  // Get all branches available in the repository
  const allBranches = (await exec(`git -C ${repoConfig.location} branch --format="%(refname:short)"`)).stdout.split("\n")

  // Sort the list of branch descriptions from branchesToPull by the length
  // of their patterns.
After
22
23
24
25
26
27
  }

  // Get all branches available in the repository
  const allBranches = (await exec(`git -C ${repoConfig.location} branch --format="%(refname:short)"`)).stdout.split("\n").filter(branch => branch !== '')

  // Sort the list of branch descriptions from branchesToPull by the length
  // of their patterns.