The v0.20 documentation states:
Enable the GitInfo feature in Hugo by using --enableGitInfo on the command line or by setting enableGitInfo to true in your site configuration.
Emphasis mine. Setting enableGitInfo to true in the site config without the --enableGitInfo flag on the command line does not seem to actually enable GitInfo.
I found that adding the command line flag to the hugo server enables GitInfo regardless of whether it is enabled in the config file.
Does anyone know what the actual expected behavior is? I’d like to update the documentation if possible.