diff options
author | Alan Rogers <alanjrogers@me.com> | 2014-10-16 15:55:06 +1100 |
---|---|---|
committer | Alan Rogers <alanjrogers@me.com> | 2014-10-16 15:55:06 +1100 |
commit | 3bcf260d82f787f1f4b6f4ea0a0814d64948ae7c (patch) | |
tree | 5729e419160c490ffa9dde494b75715875245fea | |
parent | 04d68fb67a7d807a65becd9f36361277902c1816 (diff) | |
download | libgit2-3bcf260d82f787f1f4b6f4ea0a0814d64948ae7c.tar.gz |
Refresh the config before creating a new snapshot.
-rw-r--r-- | src/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 8a0fb653c..fbea6f30c 100644 --- a/src/config.c +++ b/src/config.c @@ -146,6 +146,10 @@ int git_config_snapshot(git_config **out, git_config *in) *out = NULL; + /* Refresh the input config first */ + if ((error = git_config_refresh(in)) < 0) + return error; + if (git_config_new(&config) < 0) return -1; |