| 2380 | } |
| 2381 | |
| 2382 | int repo_config_get_string_tmp(struct repository *repo, |
| 2383 | const char *key, const char **dest) |
| 2384 | { |
| 2385 | int ret; |
| 2386 | git_config_check_init(repo); |
| 2387 | ret = git_configset_get_string_tmp(repo->config, key, dest); |
| 2388 | if (ret < 0) |
| 2389 | git_die_config(repo, key, NULL); |
| 2390 | return ret; |
| 2391 | } |
| 2392 | |
| 2393 | int repo_config_get_int(struct repository *repo, |
| 2394 | const char *key, int *dest) |