diff options
Diffstat (limited to 'src/libgit2/fetchhead.c')
-rw-r--r-- | src/libgit2/fetchhead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/fetchhead.c b/src/libgit2/fetchhead.c index 146d891ae..117d7a01d 100644 --- a/src/libgit2/fetchhead.c +++ b/src/libgit2/fetchhead.c @@ -202,7 +202,7 @@ static int fetchhead_ref_parse( return -1; } - if (git_oid_fromstr(oid, oid_str) < 0) { + if (git_oid_fromstr(oid, oid_str, GIT_OID_SHA1) < 0) { const git_error *oid_err = git_error_last(); const char *err_msg = oid_err ? oid_err->message : "invalid object ID"; |