Skip to content

Commit ae0c89d

Browse files
derrickstoleegitster
authored andcommitted
t5318: use test_oid for HASH_LEN
Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43c94bb commit ae0c89d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/t5318-commit-graph.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ test_expect_success 'setup full repo' '
88
cd "$TRASH_DIRECTORY/full" &&
99
git init &&
1010
git config core.commitGraph true &&
11-
objdir=".git/objects"
11+
objdir=".git/objects" &&
12+
test_oid_init
1213
'
1314

1415
test_expect_success 'verify graph with no graph file' '
@@ -273,7 +274,7 @@ test_expect_success 'git commit-graph verify' '
273274

274275
NUM_COMMITS=9
275276
NUM_OCTOPUS_EDGES=2
276-
HASH_LEN=20
277+
HASH_LEN="$(test_oid rawsz)"
277278
GRAPH_BYTE_VERSION=4
278279
GRAPH_BYTE_HASH=5
279280
GRAPH_BYTE_CHUNK_COUNT=6

0 commit comments

Comments
 (0)