Fix #60002 Undo last commit: keep staged files

This commit is contained in:
Mathias Rasmussen
2018-10-07 18:32:35 +02:00
parent 1358e90371
commit f3c7ce2a05

View File

@@ -1106,14 +1106,7 @@ export class Repository {
}
async reset(treeish: string, hard: boolean = false): Promise<void> {
const args = ['reset'];
if (hard) {
args.push('--hard');
}
args.push(treeish);
const args = ['reset', hard ? '--hard' : '--soft', treeish];
await this.run(args);
}