summaryrefslogtreecommitdiff
path: root/src/libgit2/fetch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-12-02 00:45:13 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-12 22:02:00 +0000
commit53fcd5b8f5f069ee9a2567280dca81b74192da74 (patch)
tree17e9fa49386cdf35578070a7d5347ea842d42038 /src/libgit2/fetch.c
parent0006ff63359358bc5e65ea5a2b6ef7ba5eca2e8e (diff)
downloadlibgit2-53fcd5b8f5f069ee9a2567280dca81b74192da74.tar.gz
transport: teach transports about oid types and SHA256
Diffstat (limited to 'src/libgit2/fetch.c')
-rw-r--r--src/libgit2/fetch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libgit2/fetch.c b/src/libgit2/fetch.c
index 5c2fee617..003b5198a 100644
--- a/src/libgit2/fetch.c
+++ b/src/libgit2/fetch.c
@@ -95,7 +95,6 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts)
git_remote_head **heads;
git_refspec tagspec, head, *spec;
int error = 0;
- git_odb *odb;
size_t i, heads_len;
unsigned int remote_caps;
unsigned int oid_mask = GIT_REMOTE_CAPABILITY_TIP_OID |
@@ -126,9 +125,6 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts)
goto cleanup;
}
- if ((error = git_repository_odb__weakptr(&odb, remote->repo)) < 0)
- goto cleanup;
-
if ((error = git_remote_ls((const git_remote_head ***)&heads, &heads_len, remote)) < 0 ||
(error = git_remote_capabilities(&remote_caps, remote)) < 0)
goto cleanup;