]> git.ameliathe1st.gay Git - git-over-gnunet.git/commitdiff
More error checking in the client
authorAmélia Coutard-Sander <git@ameliathe1st.gay>
Tue, 26 Nov 2024 10:43:16 +0000 (11:43 +0100)
committerAmélia Coutard-Sander <git@ameliathe1st.gay>
Tue, 26 Nov 2024 10:43:16 +0000 (11:43 +0100)
git-remote-gnunet

index dd8f217dee04b072719915569a9b19848976fa20..c92e29d7ddf5269f409cbe1acb01c288a2f6501e 100755 (executable)
@@ -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)"