summaryrefslogtreecommitdiff
path: root/tests/libgit2/object/blob/fromstream.c
diff options
context:
space:
mode:
authorYuang Li <yuangli88@hotmail.com>2022-07-29 01:32:40 +0100
committerGitHub <noreply@github.com>2022-07-29 01:32:40 +0100
commit09acf6986513381316c8797c4529323bff8525a5 (patch)
tree2802cfbafd3e7d94e6a3153848ed0edf3ac1aebc /tests/libgit2/object/blob/fromstream.c
parent3d7a609d632d7a16d099897735f41dae248e943b (diff)
parent7f46bfac14f0502711f8441348fd361175953fd5 (diff)
downloadlibgit2-09acf6986513381316c8797c4529323bff8525a5.tar.gz
Merge branch 'mw_dev' into shallow-clone-local
Diffstat (limited to 'tests/libgit2/object/blob/fromstream.c')
-rw-r--r--tests/libgit2/object/blob/fromstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libgit2/object/blob/fromstream.c b/tests/libgit2/object/blob/fromstream.c
index 60ff3991b..dad0b52e1 100644
--- a/tests/libgit2/object/blob/fromstream.c
+++ b/tests/libgit2/object/blob/fromstream.c
@@ -23,7 +23,7 @@ void test_object_blob_fromstream__multiple_write(void)
git_writestream *stream;
int i, howmany = 6;
- cl_git_pass(git_oid_fromstr(&expected_id, "321cbdf08803c744082332332838df6bd160f8f9"));
+ cl_git_pass(git_oid__fromstr(&expected_id, "321cbdf08803c744082332332838df6bd160f8f9", GIT_OID_SHA1));
cl_git_fail_with(GIT_ENOTFOUND,
git_object_lookup(&blob, repo, &expected_id, GIT_OBJECT_ANY));
@@ -64,7 +64,7 @@ static void assert_named_chunked_blob(const char *expected_sha, const char *fake
git_writestream *stream;
int i, howmany = 6;
- cl_git_pass(git_oid_fromstr(&expected_id, expected_sha));
+ cl_git_pass(git_oid__fromstr(&expected_id, expected_sha, GIT_OID_SHA1));
cl_git_pass(git_blob_create_from_stream(&stream, repo, fake_name));