Remove read_or_die in favor of better error messages.
[gitweb.git] / git-revert.sh
index f9843c7c8ec4c3ae7e796fec801425e85dc1c73d..fcca3ebb90e7b72d5b494e907f1c12060a04287d 100755 (executable)
@@ -16,7 +16,8 @@ case "$0" in
        me=cherry-pick
        USAGE='[--edit] [-n] [-r] [-x] <commit-ish>'  ;;
 * )
-       die "What are you talking about?" ;;
+       echo >&2 "What are you talking about?"
+       exit 1 ;;
 esac
 . git-sh-setup
 require_work_tree