Skip to content

Commit

Permalink
git: fix unstageAll
Browse files Browse the repository at this point in the history
The commit fixes `unstage all` to properly reset the index rather than
report errors or discard changes.

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto authored and erezmus committed Jun 19, 2023
1 parent 1fb0cf4 commit af0398e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/git/src/browser/git-scm-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export class GitScmProvider implements ScmProvider {
try {
const { repository, stagedChanges } = this;
const uris = stagedChanges.map(c => c.uri);
await this.git.unstage(repository, uris);
await this.git.unstage(repository, uris, { reset: 'index' });
} catch (error) {
this.gitErrorHandler.handleError(error);
}
Expand Down

0 comments on commit af0398e

Please sign in to comment.