Skip to content

Commit fa00c94

Browse files
committed
Fixes #400 - Reset TO commit also resets chosen one
1 parent 876bada commit fa00c94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
99
- Adds clipboard support for Linux without requiring any external dependencies — thanks to [PR #394](https://github.com/eamodio/vscode-gitlens/pull/394) by Cédric Malard ([@cmalard](https://github.com/cmalard))
1010

1111
### Fixed
12+
- Fixes [#400](https://github.com/eamodio/vscode-gitlens/issues/400) - Reset TO commit also resets chosen one
1213
- Fixes [#397](https://github.com/eamodio/vscode-gitlens/issues/397) - Error while opening the gitlens view using `Open View` command
1314
- Fixes [#391](https://github.com/eamodio/vscode-gitlens/issues/391) - GitLens adds some settings in settings.json
1415
- Fixes another case of [#343](https://github.com/eamodio/vscode-gitlens/issues/343) - Can't show blame when VSCode starts on branch without upstream — thanks to [PR #390](https://github.com/eamodio/vscode-gitlens/pull/390) by ryenus ([@ryenus](https://github.com/ryenus))

src/views/explorerCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export class ExplorerCommands extends Disposable {
303303
terminalResetCommit(node: ExplorerNode) {
304304
if (!(node instanceof CommitNode)) return;
305305

306-
this.sendTerminalCommand('reset', `--soft ${node.ref}^`, node.repoPath);
306+
this.sendTerminalCommand('reset', `--soft ${node.ref}`, node.repoPath);
307307
}
308308

309309
terminalRevertCommit(node: ExplorerNode) {

0 commit comments

Comments
 (0)