summaryrefslogtreecommitdiff
path: root/src/diff_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff_driver.c')
-rw-r--r--src/diff_driver.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/diff_driver.c b/src/diff_driver.c
index 6e87fd6f8..28c0a6b17 100644
--- a/src/diff_driver.c
+++ b/src/diff_driver.c
@@ -234,14 +234,11 @@ static int git_diff_driver_load(
}
/* if you can't read config for repo, just use default driver */
- if (git_repository_config__weakptr(&repo_cfg, repo) < 0) {
+ if (git_repository_config_snapshot(&cfg, repo) < 0) {
giterr_clear();
goto done;
}
- if ((error = git_config_snapshot(&cfg, repo_cfg)) < 0)
- return error;
-
drv = git__calloc(1, sizeof(git_diff_driver) + namelen + 1);
GITERR_CHECK_ALLOC(drv);
drv->type = DIFF_DRIVER_AUTO;