()
| 46 | |
| 47 | /** @returns The git config value of "init.defaultBranch". If it is not set, returns "main". */ |
| 48 | const getDefaultBranch = () => { |
| 49 | const stdout = execSync("git config --global init.defaultBranch || echo main").toString().trim(); |
| 50 | |
| 51 | return stdout; |
| 52 | }; |
| 53 | |
| 54 | // This initializes the Git-repository for the project |
| 55 | export const initializeGit = async (projectDir: string) => { |
no test coverage detected
searching dependent graphs…