Skip to content

Commit

Permalink
Ensure amend option is passed to hg.commit
Browse files Browse the repository at this point in the history
  • Loading branch information
incidentist committed May 30, 2020
1 parent b822cf6 commit 7def3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ export class Repository implements IDisposable {
fileList = selectedResources.map(r => this.mapResourceToRepoRelativePath(r));
}

await this.repository.commit(message, { addRemove: opts.scope === CommitScope.ALL_WITH_ADD_REMOVE, fileList });
await this.repository.commit(message, { amend: opts.amend, addRemove: opts.scope === CommitScope.ALL_WITH_ADD_REMOVE, fileList });
});
}

Expand Down

0 comments on commit 7def3ea

Please sign in to comment.