git_config_set: do not use a state machine