()
| 55 | } |
| 56 | |
| 57 | function detectDefaultBranch() { |
| 58 | try { |
| 59 | const ref = run("git symbolic-ref refs/remotes/origin/HEAD"); |
| 60 | const parts = ref.split("/"); |
| 61 | return parts[parts.length - 1]; |
| 62 | } catch { |
| 63 | throw new Error("Cannot detect default branch from origin/HEAD"); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | |
| 68 | function hasLocalRef(ref: string) { |
no test coverage detected
searching dependent graphs…