]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Use normal "url-safe" variant of base64 for repo url fragment
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 5011706c0f7bee02b54b185b062a8d1c59a2b5b9..aec5fa261c8b011f792a55d9c930f7287e3e97b7 100755 (executable)
@@ -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_"