c
char *temp_alternate = NULL;
git_config_get_string("submodule.alternateLocation", &temp_alternate);
if (temp_alternate) {
    sm_alternate = xstrdup(temp_alternate);
    free(temp_alternate);
    git_config_set_in_file(p, "submodule.alternateLocation", sm_alternate);
}

char *temp_strategy = NULL;
git_config_get_string("submodule.alternateErrorStrategy", &temp_strategy);
if (temp_strategy) {
    error_strategy = xstrdup(temp_strategy);
    free(temp_strategy);
    git_config_set_in_file(p, "submodule.alternateErrorStrategy", error_strategy);
}
