Skip to content

Commit e82cbf8

Browse files
authored
Git - only add --find-renames if the value is not the default one (microsoft#184992)
1 parent 5b22213 commit e82cbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ export class Repository {
20212021
}
20222022

20232023
// --find-renames option is only available starting with git 2.18.0
2024-
if (opts?.similarityThreshold && this._git.compareGitVersionTo('2.18.0') !== -1) {
2024+
if (opts?.similarityThreshold && opts.similarityThreshold !== 50 && this._git.compareGitVersionTo('2.18.0') !== -1) {
20252025
args.push(`--find-renames=${opts.similarityThreshold}%`);
20262026
}
20272027

0 commit comments

Comments
 (0)