diff --git a/src/commands/git/tag.ts b/src/commands/git/tag.ts index ad7be60..5a31778 100644 --- a/src/commands/git/tag.ts +++ b/src/commands/git/tag.ts @@ -164,7 +164,7 @@ export class TagGitCommand extends QuickCommand { switch (state.subcommand) { case 'create': { - this.createCommandSteps(state as CreateStepState, context); + yield* this.createCommandSteps(state as CreateStepState, context); // Clear any chosen name, since we are exiting this subcommand state.name = undefined; break; diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index 51b7f76..1234e78 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -247,7 +247,7 @@ export class ViewCommands { private createTag(node: ViewRefNode) { if (!(node instanceof ViewRefNode)) return Promise.resolve(); - return GitActions.Branch.create(node.repoPath, GitReference.create(node.ref, node.repoPath)); + return GitActions.Tag.create(node.repoPath, GitReference.create(node.ref, node.repoPath)); } @debug()