use add instead of stage

This commit is contained in:
Joao Moreno 2019-08-07 17:37:44 +02:00
parent 5a40f525bc
commit 59e3396c27

View file

@ -1249,7 +1249,7 @@ export class CommandCenter {
if (pick === saveAndCommit) {
await Promise.all(unsavedTextDocuments.map(d => d.save()));
await Promise.all(unsavedTextDocuments.map(d => repository.stage(d.uri, d.getText())));
await repository.add(unsavedTextDocuments.map(d => d.uri));
await repository.status();
} else if (pick !== commit) {
return false; // do not commit on cancel