From: Amélia Coutard-Sander Date: Wed, 7 Jan 2026 14:02:00 +0000 (+0100) Subject: More error checking in the client X-Git-Url: https://git.f4mnq.fr/?a=commitdiff_plain;h=f58e9cbfa24da187063edd27d456dd53f99381d6;p=git-over-gnunet.git More error checking in the client --- 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)"