From 9ba9e513bc20d83f5c00dcabf8d0aa1d6df1e5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 16 Jun 2011 19:54:37 +0200 Subject: [PATCH] Parse the repo's configuration when we load it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not enough to load the config, we also need to explicitely parse it after we create it. Signed-off-by: Carlos Martín Nieto --- src/repository.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/repository.c b/src/repository.c index be089b54b..41fb96b54 100644 --- a/src/repository.c +++ b/src/repository.c @@ -295,6 +295,12 @@ int git_repository_config(git_config **out, git_repository *repo) goto cleanup; } + error = local->open(local); + if (error < GIT_SUCCESS) { + error = git__rethrow(error, "Failed to open config file"); + goto cleanup; + } + *out = cfg; cleanup: