Skip to content

Commit

Permalink
Add index to unstage command (#11635)
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Grant <[email protected]>
Co-authored-by: Vince Fugnitto <[email protected]>
  • Loading branch information
colin-grant-work and Vince Fugnitto authored Sep 7, 2022
1 parent 03b8549 commit 9ab4618
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 @@ -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);
Expand Down

0 comments on commit 9ab4618

Please sign in to comment.