Meh, it's obviously more elegant to `git_config_new(&cfg);` `git_repository_set_config(repo, cfg);`. That will prevent libgit2 from even looking up the global config file.