Explorar o código

migrate-to-repokey: ask using canonical_path() as we do everywhere else

Marian Beermann %!s(int64=8) %!d(string=hai) anos
pai
achega
5bc03cc042
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/key.py

+ 1 - 1
src/borg/key.py

@@ -476,7 +476,7 @@ class PassphraseKey(ID_HMAC_SHA_256, AESKeyBase):
 
     @classmethod
     def detect(cls, repository, manifest_data):
-        prompt = 'Enter passphrase for %s: ' % repository._location.orig
+        prompt = 'Enter passphrase for %s: ' % repository._location.canonical_path()
         key = cls(repository)
         passphrase = Passphrase.env_passphrase()
         if passphrase is None: