()
| 37 | }; |
| 38 | |
| 39 | const getGitVersion = () => { |
| 40 | const stdout = execSync("git --version").toString().trim(); |
| 41 | const gitVersionTag = stdout.split(" ")[2]; |
| 42 | const major = gitVersionTag?.split(".")[0]; |
| 43 | const minor = gitVersionTag?.split(".")[1]; |
| 44 | return { major: Number(major), minor: Number(minor) }; |
| 45 | }; |
| 46 | |
| 47 | /** @returns The git config value of "init.defaultBranch". If it is not set, returns "main". */ |
| 48 | const getDefaultBranch = () => { |
no test coverage detected
searching dependent graphs…