Merge pull request #60104 from mathiasvr/fix-60002

Fix #60002 Undo last commit: keep staged files
This commit is contained in:
João Moreno
2018-11-20 09:59:42 +01:00
committed by GitHub

View File

@@ -1114,14 +1114,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);
}