diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-12-02 00:45:13 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-12 22:02:00 +0000 |
commit | 53fcd5b8f5f069ee9a2567280dca81b74192da74 (patch) | |
tree | 17e9fa49386cdf35578070a7d5347ea842d42038 /src/libgit2/fetch.c | |
parent | 0006ff63359358bc5e65ea5a2b6ef7ba5eca2e8e (diff) | |
download | libgit2-53fcd5b8f5f069ee9a2567280dca81b74192da74.tar.gz |
transport: teach transports about oid types and SHA256
Diffstat (limited to 'src/libgit2/fetch.c')
-rw-r--r-- | src/libgit2/fetch.c | 4 |
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; |