fix: add correct CPE vendor/product candidates for Git for Windows PE binary (#5156)

Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
This commit is contained in:
Weston Steimel 2026-08-10 15:26:29 +01:00 committed by GitHub
parent 9dd9ce0bdd
commit 2293641e3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,11 @@ func candidateVendorsForPE(p pkg.Package) fieldCandidateSet {
candidates.addValue("artifex")
}
if product == "git" || fileDesc == "git setup" || company == "the git development community" {
candidates.addValue("git_for_windows_project")
candidates.addValue("gitforwindows")
}
return candidates
}
@ -59,5 +64,10 @@ func candidateProductsForPE(p pkg.Package) fieldCandidateSet {
candidates.addValue("ghostscript")
}
if product == "git" || fileDesc == "git setup" {
candidates.addValue("git_for_windows")
candidates.addValue("git")
}
return candidates
}