From 245b3eb1a5f2a9b786c297be3d45aecab29d6110 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 27 Dec 2013 02:08:29 -0400 Subject: make some requests optional, simplify and future-proof protocol more --- doc/special_remotes/external/example.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/special_remotes/external') diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh index 07dcb2705..b42a8520d 100755 --- a/doc/special_remotes/external/example.sh +++ b/doc/special_remotes/external/example.sh @@ -66,9 +66,6 @@ while read line; do echo INITREMOTE-SUCCESS fi ;; - GETCOST) - echo COST-UNKNOWN - ;; PREPARE) # XXX Use GETCONFIG to get configuration settings, # and do anything needed to get ready for using the @@ -123,7 +120,10 @@ while read line; do echo REMOVE-SUCCESS "$key" ;; *) - echo UNKNOWN-REQUEST + # The requests listed above are all the ones + # that are required to be supported, so it's fine + # to say that any other request is unsupported. + echo UNSUPPORTED-REQUEST ;; esac done -- cgit v1.2.3