From 6f5d6413aa553372f15a51d49a308e06c1ff4419 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Am=C3=A9lia=20Coutard-Sander?= Date: Tue, 26 Nov 2024 11:43:16 +0100 Subject: [PATCH] More error checking in the client --- git-remote-gnunet | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git-remote-gnunet b/git-remote-gnunet index dd8f217..c92e29d 100755 --- a/git-remote-gnunet +++ b/git-remote-gnunet @@ -24,9 +24,17 @@ while read -r cmd arg; do connect) break ;; + *) + echo >&2 "Error !" + exit 1 esac done +if [[ "$arg" = "git-receive-pack" ]]; then + echo >&2 "Pushing unsupported for now." + exit 1 +fi + echo '' echo >&2 "Looking up $gns." peer="$(gnunet-gns -u "$gns" -t TXT -r)" -- 2.46.0