Refactor: pass build context to verifyGitConfig.
This change enables it to access configuration options.