mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - fix git status regression for git versions older than 2.18 (#182739)
* Git - fix git status regression for git versions older than 2.18
* 💄 - Tweak version number
This commit is contained in:
@@ -2020,7 +2020,8 @@ export class Repository {
|
||||
args.push('--ignore-submodules');
|
||||
}
|
||||
|
||||
if (opts?.similarityThreshold) {
|
||||
// --find-renames option is only available starting with git 2.18.0
|
||||
if (opts?.similarityThreshold && this._git.compareGitVersionTo('2.18.0') !== -1) {
|
||||
args.push(`--find-renames=${opts.similarityThreshold}%`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user