Skip to content

Commit a79eec2

Browse files
bk2204gitster
authored andcommitted
t5309: make test hash independent
Use the proper pack constants defined in lib-pack.sh to make this test work with SHA-256. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 796d138 commit a79eec2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

t/t5309-pack-delta-cycles.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@ test_description='test index-pack handling of delta cycles in packfiles'
44
. ./test-lib.sh
55
. "$TEST_DIRECTORY"/lib-pack.sh
66

7-
if ! test_have_prereq SHA1
8-
then
9-
skip_all='not using SHA-1 for objects'
10-
test_done
11-
fi
12-
137
# Two similar-ish objects that we have computed deltas between.
14-
A=01d7713666f4de822776c7622c10f1b07de280dc
15-
B=e68fe8129b546b101aee9510c5328e7f21ca1d18
8+
A=$(test_oid packlib_7_0)
9+
B=$(test_oid packlib_7_76)
1610

1711
# double-check our hand-constucted packs
1812
test_expect_success 'index-pack works with a single delta (A->B)' '

0 commit comments

Comments
 (0)