summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
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;