Browse Source

Fixes create tag command/menu

main
Eric Amodio 4 years ago
parent
commit
998d8d8925
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/commands/git/tag.ts
  2. +1
    -1
      src/views/viewCommands.ts

+ 1
- 1
src/commands/git/tag.ts View File

@ -164,7 +164,7 @@ export class TagGitCommand extends QuickCommand {
switch (state.subcommand) { switch (state.subcommand) {
case 'create': { 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 // Clear any chosen name, since we are exiting this subcommand
state.name = undefined; state.name = undefined;
break; break;

+ 1
- 1
src/views/viewCommands.ts View File

@ -247,7 +247,7 @@ export class ViewCommands {
private createTag(node: ViewRefNode) { private createTag(node: ViewRefNode) {
if (!(node instanceof ViewRefNode)) return Promise.resolve(); 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() @debug()

Loading…
Cancel
Save