Commit 22ab8881787f00eec479e1f148a3846a67c9bcfe

Edward Thomson 2014-05-20T22:07:15

Use a config snapshot

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/merge.c b/src/merge.c
index 02851e5..54c7660 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -2572,7 +2572,7 @@ int merge_config(git_merge_config_t *out, git_repository *repo)
 
 	*out = GIT_MERGE_CONFIG_NONE;
 
-	if ((error = git_repository_config(&config, repo)) < 0)
+	if ((error = git_repository_config_snapshot(&config, repo)) < 0)
 		goto done;
 
 	if ((error = git_config_get_string(&value, config, "merge.ff")) < 0) {