Skip to content

Commit 3716d50

Browse files
bk2204gitster
authored andcommitted
remote-testgit: adapt for object-format
When using an algorithm other than SHA-1, we need the remote helper to advertise support for the object-format extension and provide information back to us so that we can properly parse refs and return data. Ensure that the test remote helper understands these extensions. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6161ce7 commit 3716d50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t5801/git-remote-testgit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ do
5252
test -n "$GIT_REMOTE_TESTGIT_SIGNED_TAGS" && echo "signed-tags"
5353
test -n "$GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE" && echo "no-private-update"
5454
echo 'option'
55+
echo 'object-format'
5556
echo
5657
;;
5758
list)
59+
echo ":object-format $(git rev-parse --show-object-format=storage)"
5860
git for-each-ref --format='? %(refname)' 'refs/heads/' 'refs/tags/'
5961
head=$(git symbolic-ref HEAD)
6062
echo "@$head HEAD"
@@ -139,6 +141,10 @@ do
139141
test $val = "true" && force="true" || force=
140142
echo "ok"
141143
;;
144+
object-format)
145+
test $val = "true" && object_format="true" || object_format=
146+
echo "ok"
147+
;;
142148
*)
143149
echo "unsupported"
144150
;;

0 commit comments

Comments
 (0)