Skip to content

Commit 8960b65

Browse files
committed
Removes pre-filled name to avoid error state
1 parent e698066 commit 8960b65

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/commands/git/switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class SwitchGitCommand extends QuickCommand<State> {
300300
icon: false,
301301
label: state.reference.refType !== 'branch',
302302
})}`,
303-
value: state.createBranch ?? getNameWithoutRemote(state.reference),
303+
value: state.createBranch,
304304
});
305305

306306
this._canConfirmOverride = undefined;

src/commands/git/tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class TagGitCommand extends QuickCommand<State> {
260260
capitalize: true,
261261
icon: false,
262262
})}`,
263-
value: state.name ?? getNameWithoutRemote(state.reference),
263+
value: state.name,
264264
});
265265
if (result === StepResultBreak) continue;
266266

src/commands/git/worktree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class WorktreeGitCommand extends QuickCommand<State> {
453453
icon: false,
454454
label: state.reference.refType !== 'branch',
455455
})}`,
456-
value: createBranchOverride ?? getNameWithoutRemote(state.reference),
456+
value: createBranchOverride,
457457
});
458458
if (result === StepResultBreak) {
459459
// Clear the flags, since we can backup after the confirm step below (which is non-standard)

0 commit comments

Comments
 (0)