Git - truncate commit hashes before running git log (#228643)
This commit is contained in:
Родитель
83285ac8d9
Коммит
26ae4519ca
|
@ -203,8 +203,9 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
|
|||
return [];
|
||||
}
|
||||
|
||||
// Deduplicate refNames
|
||||
const refNames = Array.from(new Set<string>(options.historyItemRefs));
|
||||
// Deduplicate refNames and truncate them to 10 characters
|
||||
const refNames = Array.from(new Set<string>(options.historyItemRefs))
|
||||
.map(ref => ref.substring(0, 10));
|
||||
|
||||
let logOptions: LogOptions = { refNames, shortStats: true };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче