Skip to content

Commit a1fb3f0

Browse files
committed
Fixes #385 - wrong terminal command for delete branch
1 parent daa598c commit a1fb3f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
88
### Added
99
- Adds (re-adds) support for handling single files — closes [#321](https://github.com/eamodio/vscode-gitlens/issues/321)
1010

11+
### Fixed
12+
- Fixes [#385](https://github.com/eamodio/vscode-gitlens/issues/385) - Wrong git command to delete remote branch
13+
1114
## [8.3.2] - 2018-05-21
1215
### Fixed
1316
- Fixes [#366](https://github.com/eamodio/vscode-gitlens/issues/366) - Running a GitLens command from a keybinding fails (more cases)

src/views/explorerCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class ExplorerCommands extends Disposable {
234234
if (!(node instanceof BranchNode)) return;
235235

236236
if (node.branch.remote) {
237-
this.sendTerminalCommand('push', `${node.branch.remote} :${node.ref}`, node.repoPath);
237+
this.sendTerminalCommand('push', `${node.branch.getRemote()} :${node.branch.getName()}`, node.repoPath);
238238
}
239239
else {
240240
this.sendTerminalCommand('branch', `-d ${node.ref}`, node.repoPath);

0 commit comments

Comments
 (0)