Tucker McKnight <tucker@pangolin.lan> | Sun Dec 07 2025
don't use --branch flag, which only became available in recent git versions
41 42 43 44 45 46
const branches = await Promise.all(branchNames.map(async (branchName) => {
const repoLocation = getLocation(reposConfig, repoName)
const branchHeadRes = await exec(`git -C ${repoLocation} show-ref --branch ${branchName}`)
const branchHead = branchHeadRes.stdout.split(" ")[0]
return {
name: branchName,41 42 43 44 45 46
const branches = await Promise.all(branchNames.map(async (branchName) => {
const repoLocation = getLocation(reposConfig, repoName)
const branchHeadRes = await exec(`git -C ${repoLocation} show-ref refs/heads/${branchName}`)
const branchHead = branchHeadRes.stdout.split(" ")[0]
return {
name: branchName,