diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-29 21:31:17 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-10-01 08:12:07 -0400 |
| commit | 2a713da1ec2e9f74c9edc75b06540ab095c68c34 (patch) | |
| tree | 488891e9b76cf54582738c48674e7dfde81cc638 /tests/object/raw/short.c | |
| parent | 3fff59705fec852b97639364ca7b3e84ff7040b7 (diff) | |
| download | libgit2-2a713da1ec2e9f74c9edc75b06540ab095c68c34.tar.gz | |
hash: accept the algorithm in inputs
Diffstat (limited to 'tests/object/raw/short.c')
| -rw-r--r-- | tests/object/raw/short.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/object/raw/short.c b/tests/object/raw/short.c index 813cd86b6..626c9654b 100644 --- a/tests/object/raw/short.c +++ b/tests/object/raw/short.c @@ -33,7 +33,7 @@ static int insert_sequential_oids( for (i = 0; i < n; ++i) { p_snprintf(numbuf, sizeof(numbuf), "%u", (unsigned int)i); - git_hash_buf(&oid, numbuf, strlen(numbuf)); + git_hash_buf(&oid, numbuf, strlen(numbuf), GIT_HASH_ALGORITHM_SHA1); oids[i] = git__malloc(GIT_OID_HEXSZ + 1); cl_assert(oids[i]); |
