From dd502711a688806824732e10a2df5d12b5f637ae Mon Sep 17 00:00:00 2001 From: colin-grant-work Date: Wed, 7 Sep 2022 09:48:05 -0600 Subject: [PATCH] Add `index` to unstage command (#11635) Co-authored-by: Colin Grant Co-authored-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 dddbc951b22a6..93a82adb8053e 100644 --- a/packages/git/src/browser/git-scm-provider.ts +++ b/packages/git/src/browser/git-scm-provider.ts @@ -335,7 +335,7 @@ export class GitScmProvider implements ScmProvider { } ); if (stagedUris.length !== 0) { - await this.git.unstage(repository, uris); + await this.git.unstage(repository, uris, { reset: 'index' }); } } catch (error) { this.gitErrorHandler.handleError(error);