diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-26 13:07:28 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-20 17:05:29 -0400 |
| commit | 8444b6dce71d53a44f300d7c023cdd075faaa872 (patch) | |
| tree | 2d3fbe6f5120ba8cb54cc460d34f76489fdce2cb /tests/libgit2/status | |
| parent | c50b280fa5bf525c6f84c39826a28ea9360e9136 (diff) | |
| download | libgit2-8444b6dce71d53a44f300d7c023cdd075faaa872.tar.gz | |
odb_hash*: accept the oid type to hash into
The git_odb_hash helper functions should not assume SHA1, and instead
should be given the oid type that they're producing.
Diffstat (limited to 'tests/libgit2/status')
| -rw-r--r-- | tests/libgit2/status/single.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libgit2/status/single.c b/tests/libgit2/status/single.c index a95d3d09c..dfba8f4e0 100644 --- a/tests/libgit2/status/single.c +++ b/tests/libgit2/status/single.c @@ -21,7 +21,7 @@ void test_status_single__hash_single_file(void) cl_git_mkfile(file_name, file_contents); cl_set_cleanup(&cleanup__remove_file, (void *)file_name); - cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJECT_BLOB)); + cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJECT_BLOB, GIT_OID_SHA1)); cl_assert_equal_oid(&expected_id, &actual_id); } @@ -39,7 +39,7 @@ void test_status_single__hash_single_empty_file(void) cl_git_mkfile(file_name, file_contents); cl_set_cleanup(&cleanup__remove_file, (void *)file_name); - cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJECT_BLOB)); + cl_git_pass(git_odb_hashfile(&actual_id, file_name, GIT_OBJECT_BLOB, GIT_OID_SHA1)); cl_assert_equal_oid(&expected_id, &actual_id); } |
