diff options
| author | Derrick Stolee <stolee@gmail.com> | 2018-09-13 05:17:42 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-09-17 08:10:32 -0700 |
| commit | ae0c89d41bbdbcdd53296a8260907105de38e112 (patch) | |
| tree | 4a8440df871bd8bb345e87ad1deaa9fe0c29f4a1 | |
| parent | 43c94bbfd88a89a45cc75b93bdb93aab1e7772af (diff) | |
t5318: use test_oid for HASH_LEN
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rwxr-xr-x | t/t5318-commit-graph.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index 0c500f7ca2..75fe09521f 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -8,7 +8,8 @@ test_expect_success 'setup full repo' ' cd "$TRASH_DIRECTORY/full" && git init && git config core.commitGraph true && - objdir=".git/objects" + objdir=".git/objects" && + test_oid_init ' test_expect_success 'verify graph with no graph file' ' @@ -273,7 +274,7 @@ test_expect_success 'git commit-graph verify' ' NUM_COMMITS=9 NUM_OCTOPUS_EDGES=2 -HASH_LEN=20 +HASH_LEN="$(test_oid rawsz)" GRAPH_BYTE_VERSION=4 GRAPH_BYTE_HASH=5 GRAPH_BYTE_CHUNK_COUNT=6 |
