diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-16 19:54:37 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-17 22:30:29 +0200 |
| commit | 9ba9e513bc20d83f5c00dcabf8d0aa1d6df1e5f7 (patch) | |
| tree | a0bd55bb3a4c968783f652d303740231521c459a | |
| parent | b22d147986504434188218ec74f9a6531497ffe9 (diff) | |
| download | libgit2-9ba9e513bc20d83f5c00dcabf8d0aa1d6df1e5f7.tar.gz | |
Parse the repo's configuration when we load it
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 <cmn@elego.de>
| -rw-r--r-- | src/repository.c | 6 |
1 files changed, 6 insertions, 0 deletions
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: |
