Use normal "url-safe" variant of base64 for repo url fragment
This commit is contained in:
parent
677df0e31b
commit
80ac8a61e2
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ make_new_repo()
|
||||||
# The manifest will be stored at pack_hash($urlid_)
|
# The manifest will be stored at pack_hash($urlid_)
|
||||||
# Needed assumption: the same user should have no duplicate urlid_
|
# Needed assumption: the same user should have no duplicate urlid_
|
||||||
# For now, we arbitrarily use 9 random bytes (72 bits)
|
# For now, we arbitrarily use 9 random bytes (72 bits)
|
||||||
urlid_=$(genkey 9 | tr '/+' 'Zz')
|
urlid_=$(genkey 9 | tr '+/' '-_')
|
||||||
Repoid=$(xecho_n "$urlid_" | pack_hash)
|
Repoid=$(xecho_n "$urlid_" | pack_hash)
|
||||||
iseq "${NAME#gcrypt::}" "$URL" || {
|
iseq "${NAME#gcrypt::}" "$URL" || {
|
||||||
git config "remote.$NAME.url" "gcrypt::$URL#$urlid_"
|
git config "remote.$NAME.url" "gcrypt::$URL#$urlid_"
|
||||||
|
|
Loading…
Reference in a new issue