From: Amélia Coutard-Sander Date: Tue, 26 Nov 2024 22:54:40 +0000 (+0100) Subject: Removed gns handling: this should probably be done by the user since the record can... X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=beae39afe042f1070e1cd1a9782cca21b5c9c438;p=git-over-gnunet.git Removed gns handling: this should probably be done by the user since the record can be used by many repos. --- diff --git a/README.txt b/README.txt index 4d722d5..a35a8db 100644 --- a/README.txt +++ b/README.txt @@ -10,8 +10,9 @@ Client: The URL to give to git is gnunet:///. Server: - To run the server on a repo, simply copy the two .sh files to its root, and run - `./run-daemons.sh `. - - This will open the repo for pulling on the url `gnunet://./`. + `./run-daemons.sh `. + - You should also add a gns TXT record containing the peerid serving your repos to your zone. + - This will open the repo for pulling on the url `gnunet:///`. Features: - Clone repo ! @@ -32,7 +33,7 @@ TODO: How it works: Client: - Uses a git remote helper to give git the ability to interpet the gnunet:// scheme. - - Gets the TXT record associated with the GNS name given after the gnunet:///. + - Gets the TXT record associated with the GNS name given in gnunet:///. - This TXT record is a . - To run a specific git command on repo and get its inputs and outputs, connect via cadet to the peer id , via the port git.-. diff --git a/run-daemons.sh b/run-daemons.sh index 2173c78..db1302d 100755 --- a/run-daemons.sh +++ b/run-daemons.sh @@ -1,18 +1,14 @@ #!/usr/bin/env bash -if test -z $1 || test -z $2 || test -z $3 || ! test -z $4; then - echo >&2 "Usage: $0 " +if test -z $1 || ! test -z $2; then + echo >&2 "Usage: $0 " exit 1 fi -ego="$1" -name="$2" -repo_name="$3" +name="$1" -echo >&2 "Running pullable repo $repo_name as \`$name.$ego'." -gnunet-namestore -a -t TXT -e 1d -n "$name" -V "$(gnunet-core -i | sed 's/.*: //')" -z "$ego" -p +echo >&2 "Running pullable repo $name." -./daemon.sh upload-pack "$repo_name" +./daemon.sh upload-pack "$name" -gnunet-namestore -d -n "$name" -z "$ego" -echo >&2 "Terminating pullable repo $repo_name in ego $ego." +echo >&2 "Terminating pullable repo $name."