git remote add cryptremote gcrypt::ssh://example.com:repo
git push cryptremote master
- > gcrypt: Setting up new repository at ssh://example.com:repo
- > gcrypt: Repository ID is KNBr0wKzct52
+ > gcrypt: Setting up new repository
> gcrypt: Repository URL is gcrypt::ssh://example.com:repo#KNBr0wKzct52
> gcrypt: (configuration for cryptremote updated)
> [ more lines .. ]
* Share the updated Repository URL with all participants.
-(The generated Repository ID is not secret, it only exists to ensure
+(The generated Repository URL is not secret, it only exists to ensure
that two repositories signed by the same user can not be maliciously
switched around. It incidentally allows multiple repositories to all
share location.)
make_new_repo()
{
local urlid_= fix_config=
- echo_info "Setting up new repository at $URL"
+ echo_info "Setting up new repository"
PUTREPO "$URL"
# We need a relatively short ID for URL+REPO
# For now, we arbitrarily use 9 random bytes (72 bits)
urlid_=$(genkey 9 | tr '/+' 'Zz')
Repoid=$(xecho_n "$urlid_" | pack_hash)
- echo_info "Repository ID is" "$urlid_"
iseq "${NAME#gcrypt::}" "$URL" || {
git config "remote.$NAME.url" "gcrypt::$URL#$urlid_"
fix_config=1
fi
# Generate manifest
- echo_info "Encrypting manifest to \"$Recipients\""
+ echo_info "Participants are: $Signers"
echo_info "Requesting manifest signature"
TmpManifest_Enc="$Localdir/manifest.$$"