Skip to content

Commit

Permalink
fix: unstage all on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Oct 18, 2022
1 parent 3461a30 commit 4507fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isomorphicGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class IsomorphicGit extends GitManager {
const res = await this.getStagedFiles(dir ?? ".");
staged = res.map(({ filepath }) => filepath);
}
await Promise.all(staged.map(file => this.unstage(file, false)));
await this.wrapFS(Promise.all(staged.map(file => git.resetIndex({ ...this.getRepo(), filepath: file }))));
} catch (error) {
this.plugin.displayError(error);
throw error;
Expand Down

0 comments on commit 4507fdb

Please sign in to comment.