From: Amélia Coutard-Sander Date: Tue, 26 Nov 2024 10:43:16 +0000 (+0100) Subject: More error checking in the client X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=6f5d6413aa553372f15a51d49a308e06c1ff4419;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)"