Skip to content

Commit f0af95f

Browse files
bk2204gitster
authored andcommitted
t5500: make hash independent
This test has hard-coded pkt-lines with object IDs. The pkt-line lengths necessarily differ between hash algorithms, so generate these lines with the packetize helper so they're always the right size. In addition, we will require an object-format capability for SHA-256, so pass that capability on to the upload-pack process. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9de0dd3 commit f0af95f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/t5500-fetch-pack.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,10 @@ test_expect_success 'shallow since with commit graph and already-seen commit' '
871871
872872
GIT_PROTOCOL=version=2 git upload-pack . <<-EOF >/dev/null
873873
0012command=fetch
874+
$(echo "object-format=$(test_oid algo)" | packetize)
874875
00010013deepen-since 1
875-
0032want $(git rev-parse other)
876-
0032have $(git rev-parse master)
876+
$(echo "want $(git rev-parse other)" | packetize)
877+
$(echo "have $(git rev-parse master)" | packetize)
877878
0000
878879
EOF
879880
)

0 commit comments

Comments
 (0)