Skip to content

Commit

Permalink
fix: stage filenames with leading '-'
Browse files Browse the repository at this point in the history
close #184
  • Loading branch information
Vinzent03 committed Feb 19, 2022
1 parent 153fd82 commit c06296e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simpleGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class SimpleGit extends GitManager {

async stage(filepath: string): Promise<void> {
this.plugin.setState(PluginState.add);
await this.git.add(filepath, (err) => this.onError(err));
await this.git.add(["--", filepath], (err) => this.onError(err));
this.plugin.setState(PluginState.idle);
}

Expand Down

0 comments on commit c06296e

Please sign in to comment.