diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-27 02:08:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-27 02:11:06 -0400 |
commit | 245b3eb1a5f2a9b786c297be3d45aecab29d6110 (patch) | |
tree | 25c913aab4f0d7626faff00020b04ff9c45eda91 /doc/special_remotes | |
parent | 4708090fcb854d3e4cd3199d260b03df8a521c07 (diff) |
make some requests optional, simplify and future-proof protocol more
Diffstat (limited to 'doc/special_remotes')
-rwxr-xr-x | doc/special_remotes/external/example.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |