diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
commit | 55cb4999720f46eddb97e25e7ddc6ac068dd0bae (patch) | |
tree | 73d3c2ec6d9d8e21b5f630dec8067e2153fbd2da /src/checkout.c | |
parent | 4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff) | |
download | libgit2-cmn/config-refresh-remove.tar.gz |
config: remove the refresh function and backend fieldcmn/config-refresh-remove
We have been refreshing on read and write for a while now, so
git_config_refresh() is at best a no-op, and might just end up wasting
cycles.
Diffstat (limited to 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c index 8aaf8c5ae..fb425bb0c 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -2038,8 +2038,7 @@ static int checkout_data_init( if ((data->opts.checkout_strategy & GIT_CHECKOUT_NO_REFRESH) == 0) { git_config *cfg; - if ((error = git_repository_config__weakptr(&cfg, repo)) < 0 || - (error = git_config_refresh(cfg)) < 0) + if ((error = git_repository_config__weakptr(&cfg, repo)) < 0) goto cleanup; /* Get the repository index and reload it (unless we're checking |