diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-04-13 10:51:58 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-04-13 10:51:58 -0700 |
commit | fcb2164ff1a0ab0eab22e08cefa87880590bdbbf (patch) | |
tree | 32d59173d9ec90efca91aafc15c38699baacec79 /src/diff.c | |
parent | 6a62543597e401adc85bad12a3153995705200f3 (diff) | |
parent | 7784bcbbee972d1f00ea88655a5592fb44ca767d (diff) | |
download | libgit2-fcb2164ff1a0ab0eab22e08cefa87880590bdbbf.tar.gz |
Merge pull request #623 from arrbee/refactor-open
Update git_repository_open
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c index 54e8dd166..fa841f717 100644 --- a/src/diff.c +++ b/src/diff.c @@ -253,7 +253,7 @@ static git_diff_list *git_diff_list_alloc( diff->repo = repo; /* load config values that affect diff behavior */ - if (git_repository_config(&cfg, repo) < 0) + if (git_repository_config__weakptr(&cfg, repo) < 0) goto fail; if (config_bool(cfg, "core.symlinks", 1)) diff->diffcaps = diff->diffcaps | GIT_DIFFCAPS_HAS_SYMLINKS; @@ -264,7 +264,6 @@ static git_diff_list *git_diff_list_alloc( if (config_bool(cfg, "core.trustctime", 1)) diff->diffcaps = diff->diffcaps | GIT_DIFFCAPS_TRUST_CTIME; /* Don't set GIT_DIFFCAPS_USE_DEV - compile time option in core git */ - git_config_free(cfg); if (opts == NULL) return diff; |