Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
git: fix includeIf on Windows by uppercasing drive letter (#40354) #50376
This fixes #40354.
Git's includeIf feature by default matches the path against the current working directory in a case sensitive manner.
VS Code launches Git using a current working directory with a lowercase drive letter, while everything else uses an uppercase drive letter, so includeIf directives that work everywhere else don't work in VS Code.
This commit borrows the fix from #9448, which manually uppercases the drive letter for Windows.