feat: set mininal supported git version to 2.43.0

This commit is contained in:
Cheng Liu 2024-03-05 09:12:19 -08:00
parent 2c21391cf6
commit 29798a1baa
No known key found for this signature in database
GPG key ID: EEC8452F7DB85CD6

View file

@ -13,10 +13,10 @@ export class GitVersionCompatibility {
public static reportGitRequiredVersion(): boolean {
const [major, minor, patch] = GitVersionCompatibility.getGitVersion();
if (major < 2 || minor < 44) {
if (major < 2 || minor < 43) {
const terminalService: TerminalService = getFromContainer(TerminalService);
terminalService.terminal.writeErrorLine(
`It appears your Git version(${major}.${minor}.${patch}) is too old. The minimal supported version is >=2.44.0.\nPlease upgrade to the latest Git version. Many Git optimizations are relatively new and not available in older versions of the software.`
`It appears your Git version(${major}.${minor}.${patch}) is too old. The minimal supported version is >=2.43.0.\nPlease upgrade to the latest Git version. Many Git optimizations are relatively new and not available in older versions of the software.`
);
return true;
}