mirror of
https://github.com/git/git.git
synced 2024-11-27 12:03:55 +08:00
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6161ce7bbe
commit
3716d50dd5
@ -52,9 +52,11 @@ do
|
||||
test -n "$GIT_REMOTE_TESTGIT_SIGNED_TAGS" && echo "signed-tags"
|
||||
test -n "$GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE" && echo "no-private-update"
|
||||
echo 'option'
|
||||
echo 'object-format'
|
||||
echo
|
||||
;;
|
||||
list)
|
||||
echo ":object-format $(git rev-parse --show-object-format=storage)"
|
||||
git for-each-ref --format='? %(refname)' 'refs/heads/' 'refs/tags/'
|
||||
head=$(git symbolic-ref HEAD)
|
||||
echo "@$head HEAD"
|
||||
@ -139,6 +141,10 @@ do
|
||||
test $val = "true" && force="true" || force=
|
||||
echo "ok"
|
||||
;;
|
||||
object-format)
|
||||
test $val = "true" && object_format="true" || object_format=
|
||||
echo "ok"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user