Skip to content

Commit f3a59c8

Browse files
committed
Make get_git_repository call awaitable to handle async repository resolution
1 parent d46de04 commit f3a59c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vscode/src/commands/generate-commit-message-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function generate_commit_message_command(
1111
return vscode.commands.registerCommand(
1212
'codeWebChat.generateCommitMessage',
1313
async (source_control?: vscode.SourceControl) => {
14-
const repository = get_git_repository(source_control)
14+
const repository = await get_git_repository(source_control)
1515
if (!repository) return
1616

1717
await repository.status()

0 commit comments

Comments
 (0)