mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
ref #44776 Cater for the cases of multiple/no previous hashes
This commit is contained in:
@@ -1295,7 +1295,8 @@ export class Repository {
|
||||
return Promise.reject<Commit>('bad commit format');
|
||||
}
|
||||
|
||||
return { hash: match[1], message: match[3], previousHashes: [match[2]] };
|
||||
const previousHashes = match[2] ? match[2].split(' ') : [];
|
||||
return { hash: match[1], message: match[3], previousHashes };
|
||||
}
|
||||
|
||||
async updateSubmodules(paths: string[]): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user