diff options
Diffstat (limited to 'src/libgit2/fetch.c')
-rw-r--r-- | src/libgit2/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgit2/fetch.c b/src/libgit2/fetch.c index 6bf16bc0f..d66892ca0 100644 --- a/src/libgit2/fetch.c +++ b/src/libgit2/fetch.c @@ -79,7 +79,7 @@ static int maybe_want_oid(git_remote *remote, git_refspec *spec) oid_head = git__calloc(1, sizeof(git_remote_head)); GIT_ERROR_CHECK_ALLOC(oid_head); - git_oid__fromstr(&oid_head->oid, spec->src, GIT_OID_SHA1); + git_oid__fromstr(&oid_head->oid, spec->src, remote->repo->oid_type); if (spec->dst) { oid_head->name = git__strdup(spec->dst); @@ -140,7 +140,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) /* Handle explicitly specified OID specs */ git_vector_foreach(&remote->active_refspecs, i, spec) { - if (!git_oid__is_hexstr(spec->src, GIT_OID_SHA1)) + if (!git_oid__is_hexstr(spec->src, remote->repo->oid_type)) continue; if (!(remote_caps & oid_mask)) { |