aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commit80ac8a61e21db3235a0c91c86c1f1aefab5c69dd (patch)
treeff827222fa0286bc9ba9a2e0bbc293d8949a52d3
parent677df0e31bcb10f2b1002f6e8f1148051ae34e3d (diff)
downloadgit-remote-gcrypt-80ac8a61e21db3235a0c91c86c1f1aefab5c69dd.zip
git-remote-gcrypt-80ac8a61e21db3235a0c91c86c1f1aefab5c69dd.tar.gz
git-remote-gcrypt-80ac8a61e21db3235a0c91c86c1f1aefab5c69dd.tar.bz2
Use normal "url-safe" variant of base64 for repo url fragment
-rwxr-xr-xgit-remote-gcrypt2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 5011706..aec5fa2 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -310,7 +310,7 @@ make_new_repo()
# The manifest will be stored at pack_hash($urlid_)
# Needed assumption: the same user should have no duplicate urlid_
# 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)
iseq "${NAME#gcrypt::}" "$URL" || {
git config "remote.$NAME.url" "gcrypt::$URL#$urlid_"