Skip to content

Commit

Permalink
fix: initial commit not working on fresh Git install
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuisi committed Jul 26, 2024
1 parent 0bab1db commit f614055
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vscode-lean4/src/projectinit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,12 @@ export class ProjectInitializationProvider implements Disposable {
return 'GitAddFailed'
}

const author = 'Lean 4 VS Code Extension'
const email = ''

const gitCommitResult = await batchExecute(
'git',
['commit', '--author', 'Lean 4 VS Code Extension <>', '-m', 'Initial commit'],
['-c', `user.name='${author}'`, '-c', `user.email='${email}'`, 'commit', '-m', 'Initial commit'],
projectFolder.fsPath,
{ combined: this.channel },
)
Expand Down

0 comments on commit f614055

Please sign in to comment.