mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:19:47 +00:00
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>
This commit is contained in:
parent
b22d147986
commit
9ba9e513bc
@ -295,6 +295,12 @@ int git_repository_config(git_config **out, git_repository *repo)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error = local->open(local);
|
||||||
|
if (error < GIT_SUCCESS) {
|
||||||
|
error = git__rethrow(error, "Failed to open config file");
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
*out = cfg;
|
*out = cfg;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user