summaryrefslogtreecommitdiff
path: root/doc/special_remotes/external
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-27 02:08:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-27 02:11:06 -0400
commit245b3eb1a5f2a9b786c297be3d45aecab29d6110 (patch)
tree25c913aab4f0d7626faff00020b04ff9c45eda91 /doc/special_remotes/external
parent4708090fcb854d3e4cd3199d260b03df8a521c07 (diff)
make some requests optional, simplify and future-proof protocol more
Diffstat (limited to 'doc/special_remotes/external')
-rwxr-xr-xdoc/special_remotes/external/example.sh8
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