We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c431a0 commit f511ab5Copy full SHA for f511ab5
src/services/git/index.ts
@@ -70,9 +70,10 @@ export async function clear(): Promise<Error | void> {
70
}
71
72
async function init(): Promise<Error | void> {
73
- const { stderr } = await exec({ command: 'git init' })
+ // note: prevents stderr warning concerning default init branch
74
+ const { stderr } = await exec({ command: 'git init --initial-branch=master' })
75
if (stderr) {
- throw new Error('Error initializing Git')
76
+ throw new Error(`Error initializing Git: ${stderr}`)
77
78
79
0 commit comments