mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
Git - only add --ignore-case
if it is a supported flag (#209819)
This commit is contained in:
parent
0662190b2c
commit
45b5423f72
|
@ -2525,7 +2525,7 @@ export class Repository {
|
|||
// On Windows and macOS ref names are case insensitive so we add --ignore-case
|
||||
// to handle the scenario where the user switched to a branch with incorrect
|
||||
// casing
|
||||
if (isWindows || isMacintosh) {
|
||||
if (this.git.compareGitVersionTo('2.12') !== -1 && (isWindows || isMacintosh)) {
|
||||
args.push('--ignore-case');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user