From ed4215fcaff1659a3d5f2125f20b5cbf142badfb Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Thu, 27 Oct 2022 10:43:32 -0400 Subject: [PATCH] git: fix `unstageAll` The commit fixes `unstage all` to properly reset the index rather than report errors or discard changes. Signed-off-by: vince-fugnitto --- packages/git/src/browser/git-scm-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/git/src/browser/git-scm-provider.ts b/packages/git/src/browser/git-scm-provider.ts index 0b2a9ce0f5833..9bd1ef446e534 100644 --- a/packages/git/src/browser/git-scm-provider.ts +++ b/packages/git/src/browser/git-scm-provider.ts @@ -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); }