Build and deploy fails for PROD but succeeds for UAT, not sure why?

I got it working again, and am posting an update for others. The reason seems to be something changed in how Netlify Hugo builds work, or in how Netlify accesses GitHub. Anyway, I’m just happy it’s working! A brief explanation follows below.

It seems the config I pass on to Netlify from Hugo in the file netlify.toml had a config line that wasn’t applicable to the UAT deploy:
HUGO_ENABLEGITINFO = "true"

I switched that to “false” and now the Hugo build on Netlify doesn’t error out when it interfaces with git. For reference, the PROD-environment related block in my Hugo netlify.toml config file now consists solely of:

[context.production.environment]
HUGO_VERSION = "0.55.6"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "false"