mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - only add --find-renames if the value is not the default one (#184992)
This commit is contained in:
@@ -2021,7 +2021,7 @@ export class Repository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --find-renames option is only available starting with git 2.18.0
|
// --find-renames option is only available starting with git 2.18.0
|
||||||
if (opts?.similarityThreshold && this._git.compareGitVersionTo('2.18.0') !== -1) {
|
if (opts?.similarityThreshold && opts.similarityThreshold !== 50 && this._git.compareGitVersionTo('2.18.0') !== -1) {
|
||||||
args.push(`--find-renames=${opts.similarityThreshold}%`);
|
args.push(`--find-renames=${opts.similarityThreshold}%`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user