From e82cbf80ba714ffc2265e84439b43d2f53f39335 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:56:29 +0200 Subject: [PATCH] Git - only add --find-renames if the value is not the default one (#184992) --- extensions/git/src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index f0e778ba9bc..2426563c671 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -2021,7 +2021,7 @@ export class Repository { } // --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}%`); }