From 998d8d8925d1d21be81a25d38c9c18131af8b190 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 14 Aug 2020 02:21:16 -0400 Subject: [PATCH] Fixes create tag command/menu --- src/commands/git/tag.ts | 2 +- src/views/viewCommands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()