Skip to content

Commit 91df1e9

Browse files
Fixes branch rename (closes #4410)
1 parent 2179386 commit 91df1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env/node/git/sub-providers/branches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ export class BranchesGitSubProvider implements GitBranchesSubProvider {
817817
@log()
818818
async renameBranch(repoPath: string, oldName: string, newName: string): Promise<void> {
819819
try {
820-
await this.git.branch(repoPath, 'branch', '-m', oldName, newName);
820+
await this.git.branch(repoPath, '-m', oldName, newName);
821821
} catch (ex) {
822822
if (ex instanceof BranchError) {
823823
throw ex.update({ branch: oldName, action: 'rename' });

0 commit comments

Comments
 (0)