summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r--src/pack-objects.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c
index e7c7f391f..882ddf544 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -86,14 +86,11 @@ static unsigned name_hash(const char *name)
static int packbuilder_config(git_packbuilder *pb)
{
- git_config *config, *repo_config;
+ git_config *config;
int ret;
int64_t val;
- if ((ret = git_repository_config__weakptr(&repo_config, pb->repo)) < 0)
- return ret;
-
- if ((ret = git_config_snapshot(&config, repo_config)) < 0)
+ if ((ret = git_repository_config_snapshot(&config, pb->repo)) < 0)
return ret;
#define config_get(KEY,DST,DFLT) do { \