We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2181108 commit 20724f7Copy full SHA for 20724f7
extensions/git/src/commands.ts
@@ -3455,10 +3455,9 @@ export class CommandCenter {
3455
commitish = choice.refName;
3456
}
3457
3458
-
3459
- const worktreeName = (branch ?? commitish).startsWith(branchPrefix)
3460
- ? (branch ?? commitish).substring(branchPrefix.length)
3461
- : (branch ?? commitish);
+ const worktreeName = ((branch ?? commitish).startsWith(branchPrefix)
+ ? (branch ?? commitish).substring(branchPrefix.length).replace(/\//g, '-')
+ : (branch ?? commitish).replace(/\//g, '-'));
3462
3463
// If user selects folder button, they manually select the worktree path through folder picker
3464
const getWorktreePath = async (): Promise<string | undefined> => {
0 commit comments