diff --git a/changes/50283-git-fma-windows-patch-policy b/changes/50283-git-fma-windows-patch-policy new file mode 100644 index 0000000000..8edaf78857 --- /dev/null +++ b/changes/50283-git-fma-windows-patch-policy @@ -0,0 +1 @@ +- Fixed a bug where the patch policy for the Windows Git Fleet-maintained app always returned "Pass", even on hosts running an outdated version, so update automations never triggered. The generated query matched `programs.name LIKE 'Git %'`, but Git for Windows registers itself in the registry as exactly `Git`. diff --git a/ee/maintained-apps/inputs/winget/git.json b/ee/maintained-apps/inputs/winget/git.json index 8cf7067dd8..671e88b625 100644 --- a/ee/maintained-apps/inputs/winget/git.json +++ b/ee/maintained-apps/inputs/winget/git.json @@ -3,7 +3,7 @@ "slug": "git/windows", "package_identifier": "Git.Git", "unique_identifier": "Git", - "fuzzy_match_name": true, + "fuzzy_match_name": "Git%", "installer_arch": "x64", "installer_type": "exe", "installer_scope": "machine", diff --git a/ee/maintained-apps/outputs/git/windows.json b/ee/maintained-apps/outputs/git/windows.json index 8326f5b3ee..2715bf9ae8 100644 --- a/ee/maintained-apps/outputs/git/windows.json +++ b/ee/maintained-apps/outputs/git/windows.json @@ -3,8 +3,8 @@ { "version": "2.55.0.3", "queries": { - "exists": "SELECT 1 FROM programs WHERE name LIKE 'Git %' AND publisher = 'The Git Development Community';", - "patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name LIKE 'Git %' AND publisher = 'The Git Development Community' AND version_compare(version, '2.55.0.3') < 0);" + "exists": "SELECT 1 FROM programs WHERE name LIKE 'Git%' AND publisher = 'The Git Development Community';", + "patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name LIKE 'Git%' AND publisher = 'The Git Development Community' AND version_compare(version, '2.55.0.3') < 0);" }, "installer_url": "https://github.com/git-for-windows/git/releases/download/v2.55.0.windows.3/Git-2.55.0.3-64-bit.exe", "install_script_ref": "64df8252",