config.c: Make git_config() work correctly when called recursively