summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Rogers <alanjrogers@me.com>2014-10-16 16:04:20 +1100
committerAlan Rogers <alanjrogers@me.com>2014-10-16 16:04:20 +1100
commita68ddfa9fbdedb401a38485d111cd7483d611d14 (patch)
tree3a5717691f696cf9916d2e2a5cc4be1989bd4934
parent3bcf260d82f787f1f4b6f4ea0a0814d64948ae7c (diff)
downloadlibgit2-fix-stale-config-snapshot.tar.gz
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index fbea6f30c..5b63381e4 100644
--- a/src/config.c
+++ b/src/config.c
@@ -146,9 +146,9 @@ 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;
+ /* Refresh the input config first */
+ if ((error = git_config_refresh(in)) < 0)
+ return error;
if (git_config_new(&config) < 0)
return -1;